pub struct SensorAttributes {
pub state: u32,
pub description: Option<String>,
pub device_type: Option<u32>,
pub has_permission: Option<bool>,
pub can_be_bypassed: Option<bool>,
pub is_bypassed: Option<bool>,
pub low_battery: Option<bool>,
pub critical_battery: Option<bool>,
pub malfunction: Option<bool>,
}Expand description
Sensor attributes from the API.
Fields§
§state: u32§description: Option<String>§device_type: Option<u32>§has_permission: Option<bool>§can_be_bypassed: Option<bool>§is_bypassed: Option<bool>§low_battery: Option<bool>§critical_battery: Option<bool>§malfunction: Option<bool>Trait Implementations§
Source§impl Clone for SensorAttributes
impl Clone for SensorAttributes
Source§fn clone(&self) -> SensorAttributes
fn clone(&self) -> SensorAttributes
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 Debug for SensorAttributes
impl Debug for SensorAttributes
Source§impl<'de> Deserialize<'de> for SensorAttributes
impl<'de> Deserialize<'de> for SensorAttributes
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 SensorAttributes
impl RefUnwindSafe for SensorAttributes
impl Send for SensorAttributes
impl Sync for SensorAttributes
impl Unpin for SensorAttributes
impl UnsafeUnpin for SensorAttributes
impl UnwindSafe for SensorAttributes
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