Struct hueclient::LightState
source · pub struct LightState {
pub on: bool,
pub bri: Option<u8>,
pub hue: Option<u16>,
pub sat: Option<u8>,
pub ct: Option<u16>,
pub xy: Option<(f32, f32)>,
}
Fields§
§on: bool
§bri: Option<u8>
§hue: Option<u16>
§sat: Option<u8>
§ct: Option<u16>
§xy: Option<(f32, f32)>
Trait Implementations§
source§impl Clone for LightState
impl Clone for LightState
source§fn clone(&self) -> LightState
fn clone(&self) -> LightState
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for LightState
impl Debug for LightState
source§impl<'de> Deserialize<'de> for LightState
impl<'de> Deserialize<'de> for LightState
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more