Struct huelib::resource::group::StateModifier [−][src]
pub struct StateModifier {
pub on: Option<bool>,
pub brightness: Option<Adjust<u8>>,
pub hue: Option<Adjust<u16>>,
pub saturation: Option<Adjust<u8>>,
pub color_space_coordinates: Option<Adjust<(f32, f32)>>,
pub color_temperature: Option<Adjust<u16>>,
pub alert: Option<Alert>,
pub effect: Option<Effect>,
pub transition_time: Option<u16>,
pub scene: Option<String>,
}
Expand description
Struct for modifying the group state.
Fields
on: Option<bool>
Turns the lights on or off.
brightness: Option<Adjust<u8>>
Sets the brightness of the lights.
hue: Option<Adjust<u16>>
Sets the hue of the lights.
saturation: Option<Adjust<u8>>
Sets the saturation of the lights.
color_space_coordinates: Option<Adjust<(f32, f32)>>
Sets the color space coordinates of the lights.
color_temperature: Option<Adjust<u16>>
Sets the color temperature of the lights.
alert: Option<Alert>
Sets the alert effect of the lights.
effect: Option<Effect>
Sets the dynamic effect of the lights.
transition_time: Option<u16>
Sets the transition duration of state changes.
This is given as a multiple of 100ms.
scene: Option<String>
Sets the scene identifier of the group.
Implementations
Sets the brightness
field of this struct.
Sets the saturation
field of this struct.
Sets the color_space_coordinates
field of this struct.
Sets the color_temperature
field of this struct.
Sets the alert
field of this struct.
Sets the effect
field of this struct.
Sets the transition_time
field of this struct.
Sets the scene
field of this struct.
Creates a new StateModifier
.
Convenient method to set the color_space_coordinates
and brightness
fields.
Trait Implementations
Returns the “default value” for a type. Read more
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
This method tests for !=
.
Auto Trait Implementations
impl RefUnwindSafe for StateModifier
impl Send for StateModifier
impl Sync for StateModifier
impl Unpin for StateModifier
impl UnwindSafe for StateModifier
Blanket Implementations
Mutably borrows from an owned value. Read more