Struct huelib::resource::scene::Scene[][src]

pub struct Scene {
    pub id: String,
    pub name: String,
    pub kind: Kind,
    pub group: Option<String>,
    pub lights: Option<Vec<String>>,
    pub owner: Option<String>,
    pub recycle: bool,
    pub locked: bool,
    pub app_data: AppData,
    pub picture: Option<String>,
    pub last_update: Option<NaiveDateTime>,
    pub version: Version,
}
Expand description

A scene.

Fields

id: String

Identifier of the scene.

name: String

Name of the scene.

kind: Kind

Kind of the scene.

group: Option<String>

Identifier of the group that the scene is linked to.

lights: Option<Vec<String>>

Identifier of the lights that are in this scene.

owner: Option<String>

Whitelist user that created or modified the content of the scene.

recycle: bool

Whether the group is automatically deleted when not referenced anymore.

locked: bool

Whether the scene is locked by a rule or a schedule.

If set to true, the scene cannot be deleted until all resources requiring or that reference the scene are deleted.

app_data: AppData

App specific data linked to the scene.

picture: Option<String>

Only available with an individual scene resource.

Reserved by the Philips Hue API for future use.

last_update: Option<NaiveDateTime>

Time the scene has been created or updated.

Not available for legacy scenes.

version: Version

Version of the scene document.

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

Feeds this value into the given Hasher. Read more

Feeds a slice of this type into the given Hasher. 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.