[][src]Struct huelib::resource::group::Group

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

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>

Class of the group.

Only used if kind is Room.

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

impl Clone for Group[src]

impl Debug for Group[src]

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

impl Eq for Group[src]

impl PartialEq<Group> for Group[src]

impl Resource for Group[src]

impl StructuralEq for Group[src]

impl StructuralPartialEq for Group[src]

Auto Trait Implementations

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.