pub struct ReportStateAndNotificationDevice {
pub notifications: Option<HashMap<String, Value>>,
pub states: Option<HashMap<String, Value>>,
}Expand description
The states and notifications specific to a device.
This type is not used in any activity, and only used as part of another schema.
Fields§
§notifications: Option<HashMap<String, Value>>Notifications metadata for devices. See the Device NOTIFICATIONS section of the individual trait reference guides.
states: Option<HashMap<String, Value>>States of devices to update. See the Device STATES section of the individual trait reference guides.
Trait Implementations§
Source§impl Clone for ReportStateAndNotificationDevice
impl Clone for ReportStateAndNotificationDevice
Source§fn clone(&self) -> ReportStateAndNotificationDevice
fn clone(&self) -> ReportStateAndNotificationDevice
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Default for ReportStateAndNotificationDevice
impl Default for ReportStateAndNotificationDevice
Source§fn default() -> ReportStateAndNotificationDevice
fn default() -> ReportStateAndNotificationDevice
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for ReportStateAndNotificationDevice
impl<'de> Deserialize<'de> for ReportStateAndNotificationDevice
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 Part for ReportStateAndNotificationDevice
Auto Trait Implementations§
impl Freeze for ReportStateAndNotificationDevice
impl RefUnwindSafe for ReportStateAndNotificationDevice
impl Send for ReportStateAndNotificationDevice
impl Sync for ReportStateAndNotificationDevice
impl Unpin for ReportStateAndNotificationDevice
impl UnwindSafe for ReportStateAndNotificationDevice
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