module models
This commit is contained in:
@@ -1,8 +1,6 @@
|
|||||||
#![allow(confusable_idents)]
|
#![allow(confusable_idents)]
|
||||||
#![allow(mixed_script_confusables)]
|
#![allow(mixed_script_confusables)]
|
||||||
|
|
||||||
use serde::{Deserialize, Serialize};
|
|
||||||
|
|
||||||
pub mod helper;
|
pub mod helper;
|
||||||
pub mod influxdb_models;
|
pub mod influxdb_models;
|
||||||
pub mod unit_conversion;
|
pub mod unit_conversion;
|
||||||
@@ -12,12 +10,8 @@ pub type Point = types::point::Point;
|
|||||||
pub type MAC = types::mac::MAC;
|
pub type MAC = types::mac::MAC;
|
||||||
|
|
||||||
|
|
||||||
pub mod antenna;
|
mod models;
|
||||||
pub type Antenna = antenna::Antenna;
|
pub type Antenna = models::antenna::Antenna;
|
||||||
|
pub type DeviceReport = models::DeviceReport;
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
#[derive(Debug, Serialize, Deserialize)]
|
|
||||||
pub struct DeviceReport {
|
|
||||||
pub data: Vec<influxdb_models::BeaconMeasure>,
|
|
||||||
}
|
|
||||||
|
|||||||
6
kairo-common/src/models/mod.rs
Normal file
6
kairo-common/src/models/mod.rs
Normal file
@@ -0,0 +1,6 @@
|
|||||||
|
pub mod antenna;
|
||||||
|
|
||||||
|
#[derive(Debug, serde::Serialize, serde::Deserialize)]
|
||||||
|
pub struct DeviceReport {
|
||||||
|
pub data: Vec<crate::influxdb_models::BeaconMeasure>,
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user