Struct huelib::resource::sensor::Sensor [−][src]
pub struct Sensor {
pub id: String,
pub name: String,
pub type_name: String,
pub model_id: String,
pub unique_id: Option<String>,
pub manufacturer_name: Option<String>,
pub product_name: Option<String>,
pub diversity_id: Option<String>,
pub software_version: Option<String>,
pub state: State,
pub config: Config,
pub recycle: Option<bool>,
}
Expand description
A sensor.
Fields
id: String
Identifier of the sensor.
name: String
Name of the sensor.
type_name: String
Type name of the sensor.
model_id: String
Model identifier of the sensor.
unique_id: Option<String>
Unique identifier of the sensor.
manufacturer_name: Option<String>
Manufacturer name of the sensor.
product_name: Option<String>
The product name.
diversity_id: Option<String>
Some proprietary id as seen on https://www.senic.com/friends-of-hue-smart-switch.
software_version: Option<String>
Software version of the sensor.
state: State
Current state of the sensor.
config: Config
Configuration of the sensor.
recycle: Option<bool>
Whether the group is automatically deleted when not referenced anymore.
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 Sensor
impl UnwindSafe for Sensor
Blanket Implementations
Mutably borrows from an owned value. Read more