pub struct State {
pub datetime: Option<TST>,
pub meterreadings: [MeterReading; 2],
pub tariff_indicator: Option<[u8; 2]>,
pub power_delivered: Option<f64>,
pub power_received: Option<f64>,
pub power_failures: Option<u64>,
pub long_power_failures: Option<u64>,
pub lines: [Line; 3],
pub slaves: [Slave; 4],
}
Expand description
The metering state surmised for a single Telegram.
Fields§
§datetime: Option<TST>
§meterreadings: [MeterReading; 2]
§tariff_indicator: Option<[u8; 2]>
§power_delivered: Option<f64>
§power_received: Option<f64>
§power_failures: Option<u64>
§long_power_failures: Option<u64>
§lines: [Line; 3]
§slaves: [Slave; 4]
Trait Implementations§
source§impl<'de> Deserialize<'de> for State
impl<'de> Deserialize<'de> for State
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
Auto Trait Implementations§
impl Freeze for State
impl RefUnwindSafe for State
impl Send for State
impl Sync for State
impl Unpin for State
impl UnwindSafe for State
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