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

pub struct Group {
    pub id: String,
    pub name: String,
    pub lights: Vec<String>,
    pub kind: Kind,
    pub class: Option<Class>,
    pub state: Option<State>,
    pub model_id: Option<String>,
    pub unique_id: Option<String>,
}

A group of lights.

Fields

id: String

Identifier of the group.

name: String

Name of the group.

lights: Vec<String>

Identifier of lights that are in this group.

kind: Kind

Kind of the group.

class: Option<Class>

Class of the group. Only used if group_type is Room.

state: Option<State>

State of the group.

model_id: Option<String>

Uniquely identifies the hardware model of the luminaire. Only present for automatically created Luminaires.

unique_id: Option<String>

Unique Id 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.

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 StructuralEq for Group[src]

impl StructuralPartialEq for Group[src]

Auto Trait Implementations

impl RefUnwindSafe for Group

impl Send for Group

impl Sync for Group

impl Unpin for Group

impl UnwindSafe for Group

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: 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.