[][src]Struct huelib::light::Light

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,
    pub software_update: SoftwareUpdate,
    pub config: Config,
    pub capabilities: Capabilities,
}

Details about 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.

software_update: SoftwareUpdate

Information about software updates of the light.

config: Config

Configuration of the light.

capabilities: Capabilities

Capabilities of the light.

Trait Implementations

impl Clone for Light[src]

impl Debug for Light[src]

impl<'de> Deserialize<'de> for Light[src]

impl PartialEq<Light> for Light[src]

impl StructuralPartialEq for Light[src]

Auto Trait Implementations

impl RefUnwindSafe for Light

impl Send for Light

impl Sync for Light

impl Unpin for Light

impl UnwindSafe for Light

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> DeserializeOwned for T where
    T: Deserialize<'de>, 
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.