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

Whether the light is on

Brightness of the light. This is a scale from the minimum capable brightness, 1, to the maximum, 254.

Hue of the light. Both 0 and 65535 are red, 25500 is green and 46920 is blue.

Staturation of the light. 254 is the most saturated (colored) and 0 is the least (white).

The x and y coordinates of a colour in CIE space

The mired colour temperature of the light.

The dynamic effect of the light. It can be either "none" or "colorloop"

If "colorloop", the light will cycle hues

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]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Debug for LightStateChange
[src]

Formats the value using the given formatter.