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

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

Deserialize this value from the given Serde deserializer. Read more

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

🔬 This is a nightly-only experimental API. (toowned_clone_into)

recently added

Uses borrowed data to replace owned data, usually by cloning. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.