pub struct Slave {
pub device_type: Option<u64>,
pub meter_reading: Option<(TST, f64)>,
}
Expand description
One of 4 possible slaves to the meter.
Such as a gas meter, water meter or heat supply.
Fields§
§device_type: Option<u64>
§meter_reading: Option<(TST, f64)>
Trait Implementations§
source§impl<'de> Deserialize<'de> for Slave
impl<'de> Deserialize<'de> for Slave
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 Slave
impl RefUnwindSafe for Slave
impl Send for Slave
impl Sync for Slave
impl Unpin for Slave
impl UnwindSafe for Slave
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