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

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,
}

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. Note that changing name does not change the owner.

recycle: bool

Indicates whether the scene can be automatically deleted by the bridge.

locked: bool

Indicates that the scene is locked by a rule or a schedule and 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

impl Clone for Scene[src]

impl Debug for Scene[src]

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

impl Eq for Scene[src]

impl PartialEq<Scene> for Scene[src]

impl StructuralEq for Scene[src]

impl StructuralPartialEq for Scene[src]

Auto Trait Implementations

impl RefUnwindSafe for Scene

impl Send for Scene

impl Sync for Scene

impl Unpin for Scene

impl UnwindSafe for Scene

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: for<'de> 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.