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

pub struct StateModifier { /* fields omitted */ }

Struct for modifying the group state.

Implementations

impl StateModifier[src]

pub fn on(self, value: bool) -> Self[src]

Turns the lights on or off.

pub fn brightness(self, modifier_type: ModifierType, value: u8) -> Self[src]

Sets the brightness of the lights.

pub fn hue(self, modifier_type: ModifierType, value: u16) -> Self[src]

Sets the hue of the lights.

pub fn saturation(self, modifier_type: ModifierType, value: u8) -> Self[src]

Sets the saturation of the lights.

pub fn color(self, value: Color) -> Self[src]

Sets the color (and brightness) of the lights.

pub fn color_temperature(self, modifier_type: ModifierType, value: u16) -> Self[src]

Sets the color temperature of the lights.

pub fn alert(self, value: Alert) -> Self[src]

Sets the alert effect of the lights.

pub fn effect(self, value: Effect) -> Self[src]

Sets the dynamic effect of the lights.

pub fn transition_time(self, value: u16) -> Self[src]

Sets the transition duration of state changes.

This is given as a multiple of 100ms.

pub fn scene(self, value: impl Into<String>) -> Self[src]

Sets the scene identifier of the group.

Trait Implementations

impl Clone for StateModifier[src]

impl Debug for StateModifier[src]

impl Default for StateModifier[src]

impl Modifier for StateModifier[src]

impl PartialEq<StateModifier> for StateModifier[src]

impl Serialize for StateModifier[src]

impl StructuralPartialEq for StateModifier[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> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> Sealed<T> for T where
    T: ?Sized

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.