pub struct SensorConfig {
pub battery: f64,
pub offset: f64,
pub on: bool,
pub reachable: bool,
}Expand description
Sensor config
Present only for “ZHA{Humidity, Pressure, Switch, Temperature}, null for “Configuration tool”
Fields§
§battery: f64§offset: f64§on: bool§reachable: boolTrait Implementations§
Source§impl Clone for SensorConfig
impl Clone for SensorConfig
Source§fn clone(&self) -> SensorConfig
fn clone(&self) -> SensorConfig
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 SensorConfig
impl Debug for SensorConfig
Source§impl Default for SensorConfig
impl Default for SensorConfig
Source§fn default() -> SensorConfig
fn default() -> SensorConfig
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for SensorConfig
impl<'de> Deserialize<'de> for SensorConfig
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 SensorConfig
impl RefUnwindSafe for SensorConfig
impl Send for SensorConfig
impl Sync for SensorConfig
impl Unpin for SensorConfig
impl UnwindSafe for SensorConfig
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