Struct huelib::resource::group::Group [−][src]
pub struct Group {
pub id: String,
pub name: String,
pub lights: Vec<String>,
pub sensors: Vec<String>,
pub kind: Kind,
pub class: Option<Class>,
pub state: Option<State>,
pub model_id: Option<String>,
pub unique_id: Option<String>,
pub recycle: Option<bool>,
}
Expand description
A group of lights.
Fields
id: String
Identifier of the group.
name: String
Name of the group.
lights: Vec<String>
Identifiers of lights that are in this group.
sensors: Vec<String>
Identifiers of sensors that are in this group.
kind: Kind
Kind of the group.
class: Option<Class>
state: Option<State>
State of the group.
model_id: Option<String>
Model identifier of the group.
Only present for automatically created luminaires.
unique_id: Option<String>
Unique identifier of the group.
In AA:BB:CC:DD format for luminaire groups or AA:BB:CC:DD-XX format for lightsource groups, where XX is the lightsource position.
recycle: Option<bool>
Whether the group is automatically deleted when not referenced anymore.
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 Group
impl UnwindSafe for Group
Blanket Implementations
Mutably borrows from an owned value. Read more