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
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations
impl RefUnwindSafe for Scene
impl UnwindSafe for Scene
Blanket Implementations
Mutably borrows from an owned value. Read more