Struct philipshue::hue::LightStateChange
[−]
[src]
pub struct LightStateChange { pub on: Option<bool>, pub bri: Option<u8>, pub hue: Option<u16>, pub sat: Option<u8>, pub xy: Option<(f32, f32)>, pub ct: Option<u16>, pub alert: Option<String>, pub effect: Option<String>, pub colormode: Option<String>, }
The state of the light. Same as LightState
except there's no reachable
field.
Fields
on: Option<bool>
Whether the light is on
bri: Option<u8>
Brightness of the light. This is a scale from the minimum capable brightness, 1, to the maximum, 254.
hue: Option<u16>
Hue of the light. Both 0 and 65535 are red, 25500 is green and 46920 is blue.
sat: Option<u8>
Staturation of the light. 254 is the most saturated (colored) and 0 is the least (white).
xy: Option<(f32, f32)>
The x and y coordinates of a colour in CIE space
ct: Option<u16>
The mired colour temperature of the light.
alert: Option<String>
The alert effect
effect: Option<String>
The dynamic effect of the light. It can be either "none" or "colorloop"
If "colorloop", the light will cycle hues
colormode: Option<String>
The current colour mode either: "hs" for hue and saturation, "xy" for x and y coordinates in colour space, or "ct" for colour temperature
Trait Implementations
impl Clone for LightStateChange
[src]
fn clone(&self) -> LightStateChange
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0
Performs copy-assignment from source
. Read more