Struct hueclient::CommandLight
source · pub struct CommandLight {
pub on: Option<bool>,
pub bri: Option<u8>,
pub hue: Option<u16>,
pub sat: Option<u8>,
pub ct: Option<u16>,
pub xy: Option<(f32, f32)>,
pub transitiontime: Option<u16>,
pub alert: Option<String>,
pub scene: Option<String>,
}
Fields§
§on: Option<bool>
§bri: Option<u8>
§hue: Option<u16>
§sat: Option<u8>
§ct: Option<u16>
§xy: Option<(f32, f32)>
§transitiontime: Option<u16>
§alert: Option<String>
§scene: Option<String>
Implementations§
source§impl CommandLight
impl CommandLight
pub fn on(self) -> CommandLight
pub fn off(self) -> CommandLight
pub fn with_bri(self, b: u8) -> CommandLight
pub fn with_hue(self, h: u16) -> CommandLight
pub fn with_sat(self, s: u8) -> CommandLight
pub fn with_ct(self, c: u16) -> CommandLight
pub fn with_xy(self, x: f32, y: f32) -> CommandLight
pub fn alert(self) -> CommandLight
pub fn scene(self, s: String) -> CommandLight
Trait Implementations§
source§impl Clone for CommandLight
impl Clone for CommandLight
source§fn clone(&self) -> CommandLight
fn clone(&self) -> CommandLight
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 CommandLight
impl Debug for CommandLight
source§impl Default for CommandLight
impl Default for CommandLight
source§fn default() -> CommandLight
fn default() -> CommandLight
Returns the “default value” for a type. Read more
source§impl<'de> Deserialize<'de> for CommandLight
impl<'de> Deserialize<'de> for CommandLight
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