pub struct DeviceCapabilityData {
pub battery_level: Option<i16>,
pub is_charging: Option<bool>,
pub relay_role: Option<String>,
pub changed_fields: Option<i16>,
}Expand description
protocol.device.capability_changed — { battery_level?, is_charging, relay_role, changed_fields }. changed_fields is the SMALLINT bitmask
(CHANGED_BATTERY=1, CHANGED_CHARGING=2, CHANGED_RELAY_ROLE=4).
Fields§
§battery_level: Option<i16>§is_charging: Option<bool>§relay_role: Option<String>§changed_fields: Option<i16>Trait Implementations§
Source§impl Clone for DeviceCapabilityData
impl Clone for DeviceCapabilityData
Source§fn clone(&self) -> DeviceCapabilityData
fn clone(&self) -> DeviceCapabilityData
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for DeviceCapabilityData
impl Debug for DeviceCapabilityData
Source§impl Default for DeviceCapabilityData
impl Default for DeviceCapabilityData
Source§fn default() -> DeviceCapabilityData
fn default() -> DeviceCapabilityData
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for DeviceCapabilityData
impl<'de> Deserialize<'de> for DeviceCapabilityData
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 DeviceCapabilityData
impl RefUnwindSafe for DeviceCapabilityData
impl Send for DeviceCapabilityData
impl Sync for DeviceCapabilityData
impl Unpin for DeviceCapabilityData
impl UnsafeUnpin for DeviceCapabilityData
impl UnwindSafe for DeviceCapabilityData
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