Struct philipshue::hue::Scene
[−]
[src]
pub struct Scene { pub name: String, pub lights: Vec<usize>, pub owner: String, pub recycle: bool, pub locked: bool, pub appdata: Option<AppData>, pub picture: Option<String>, pub lastupdated: Option<String>, pub lightstates: Map<usize, LightStateChange>, }
A scene
A scene can be used to store a specific set of states of lights on the bridge to recall later.
Fields
name: String
Human readable name given to the scene
lights: Vec<usize>
The IDs of the lights in the scene.
owner: String
The name of the user that created or last modified the scene
recycle: bool
Whether the scene can be deleted automatically by the bridge
locked: bool
Whether the scene is locked by a rule or schedule.
appdata: Option<AppData>
App specific data linked to this scene
picture: Option<String>
Reserved for future use. See Philips Hue documention
lastupdated: Option<String>
UTC timestamp of when the scene was last updated
lightstates: Map<usize, LightStateChange>
Light states stored on the scene to be recalled
Trait Implementations
impl Clone for Scene
[src]
fn clone(&self) -> Scene
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0
Performs copy-assignment from source
. Read more