Refactor Models for InfluxDB #1

Merged
fdiniello merged 5 commits from refactor-models into develop 2023-06-18 18:43:15 +02:00
3 changed files with 9 additions and 9 deletions
Showing only changes of commit 7e9f29cd0e - Show all commits

View File

@@ -1,8 +1,6 @@
#![allow(confusable_idents)]
#![allow(mixed_script_confusables)]
use serde::{Deserialize, Serialize};
pub mod helper;
pub mod influxdb_models;
pub mod unit_conversion;
@@ -12,12 +10,8 @@ pub type Point = types::point::Point;
pub type MAC = types::mac::MAC;
pub mod antenna;
pub type Antenna = antenna::Antenna;
mod models;
pub type Antenna = models::antenna::Antenna;
pub type DeviceReport = models::DeviceReport;
#[derive(Debug, Serialize, Deserialize)]
pub struct DeviceReport {
pub data: Vec<influxdb_models::BeaconMeasure>,
}

View File

@@ -0,0 +1,6 @@
pub mod antenna;
#[derive(Debug, serde::Serialize, serde::Deserialize)]
pub struct DeviceReport {
pub data: Vec<crate::influxdb_models::BeaconMeasure>,
}