bms_dtos 0.4.0

Common DTOs for communication over network for the BMS Uni project
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
use serde::{Deserialize, Serialize};

#[derive(Serialize, Deserialize, Debug)]
pub struct TrendDataRaw {
    pub externallogid: i64,
    pub timestamp: String,
    pub timestamp_tzinfo: i64,
    pub value: Option<f64>,
}

#[derive(Clone, Serialize, Deserialize, Debug)]
pub struct MetadataJson {
    pub externallogid: i64,
    pub source: String,
    pub unit: String,
}