pub struct Device {
pub type_: DeviceType,
pub active_count: u32,
pub measurement_type: Option<MeasurementType>,
pub reading_time: DateTime<Utc>,
pub w_now: f64,
pub wh_now: Option<f64>,
pub state: Option<AcBatteryState>,
pub lines: Option<Vec<Line>>,
pub details: Option<Details>,
}Fields§
§type_: DeviceTypeThe type of device this is about.
active_count: u32The number of active devices of this type.
measurement_type: Option<MeasurementType>§reading_time: DateTime<Utc>The time at which the reading was taken.
w_now: f64The power in watts currently measured.
wh_now: Option<f64>§state: Option<AcBatteryState>§lines: Option<Vec<Line>>§details: Option<Details>Trait Implementations§
Source§impl<'de> Deserialize<'de> for Device
impl<'de> Deserialize<'de> for Device
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl StructuralPartialEq for Device
Auto Trait Implementations§
impl Freeze for Device
impl RefUnwindSafe for Device
impl Send for Device
impl Sync for Device
impl Unpin for Device
impl UnwindSafe for Device
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more