pub struct DeviceState(pub Map<String, Value>);Expand description
A device’s state on <device>: its readings, merged as they arrive, plus
linkquality. Retained unless mqtt.retain_state is off; an empty
retained message clears it when the device leaves or is renamed.
Which keys appear depends on the device’s clusters. A reading from a
second endpoint with the same cluster gets the endpoint number as a
suffix, as in temperature_2.
Tuple Fields§
§0: Map<String, Value>Trait Implementations§
Source§impl Clone for DeviceState
impl Clone for DeviceState
Source§impl Debug for DeviceState
impl Debug for DeviceState
Source§impl Default for DeviceState
impl Default for DeviceState
Source§impl<'de> Deserialize<'de> for DeviceState
impl<'de> Deserialize<'de> for DeviceState
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
Source§impl PartialEq for DeviceState
impl PartialEq for DeviceState
Source§impl Serialize for DeviceState
impl Serialize for DeviceState
impl StructuralPartialEq for DeviceState
Auto Trait Implementations§
impl Freeze for DeviceState
impl RefUnwindSafe for DeviceState
impl Send for DeviceState
impl Sync for DeviceState
impl Unpin for DeviceState
impl UnsafeUnpin for DeviceState
impl UnwindSafe for DeviceState
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