Struct huelib::resource::sensor::Config [−][src]
Expand description
Configuration of a sensor.
Fields
on: bool
Whether the sensor is on.
reachable: Option<bool>
Whether the sensor can be reached by the bridge.
battery: Option<u8>
The current battery state in percent.
Only for battery powered devices. Not present when not provided on creation (CLIP sensors).
Trait Implementations
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 RefUnwindSafe for Config
impl UnwindSafe for Config
Blanket Implementations
Mutably borrows from an owned value. Read more