Struct huelib::resource::light::Light [−][src]
pub struct Light {
pub id: String,
pub name: String,
pub kind: String,
pub state: State,
pub model_id: String,
pub unique_id: String,
pub product_id: Option<String>,
pub product_name: Option<String>,
pub manufacturer_name: Option<String>,
pub software_version: String,
}
Expand description
A light.
Fields
id: String
Identifier of the light.
name: String
Name of the light.
kind: String
Type of the light.
state: State
Current state of the light.
model_id: String
The hardware model of the light.
unique_id: String
Unique ID of the light.
product_id: Option<String>
Product ID of the light.
product_name: Option<String>
Product name of the light.
manufacturer_name: Option<String>
Manufacturer name of the light.
software_version: String
The software version running on the light.
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 Light
impl UnwindSafe for Light
Blanket Implementations
Mutably borrows from an owned value. Read more