[][src]Struct hueclient::bridge::CommandLight

pub struct CommandLight {
    pub on: Option<bool>,
    pub bri: Option<u8>,
    pub hue: Option<u16>,
    pub sat: Option<u8>,
    pub ct: Option<u16>,
    pub transitiontime: Option<u16>,
    pub alert: Option<String>,
}

Fields

on: Option<bool>bri: Option<u8>hue: Option<u16>sat: Option<u8>ct: Option<u16>transitiontime: Option<u16>alert: Option<String>

Methods

impl CommandLight[src]

pub fn on(self) -> CommandLight[src]

pub fn off(self) -> CommandLight[src]

pub fn with_bri(self, b: u8) -> CommandLight[src]

pub fn with_hue(self, h: u16) -> CommandLight[src]

pub fn with_sat(self, s: u8) -> CommandLight[src]

pub fn with_ct(self, c: u16) -> CommandLight[src]

pub fn alert(self) -> CommandLight[src]

Trait Implementations

impl Default for CommandLight[src]

impl Clone for CommandLight[src]

fn clone_from(&mut self, source: &Self)
1.0.0
[src]

Performs copy-assignment from source. Read more

impl Debug for CommandLight[src]

impl Serialize for CommandLight[src]

impl<'de> Deserialize<'de> for CommandLight[src]

Auto Trait Implementations

Blanket Implementations

impl<T> From for T[src]

impl<T, U> Into for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

impl<T, U> TryFrom for T where
    U: Into<T>, 
[src]

type Error = !

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

impl<T> Borrow for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> BorrowMut for T where
    T: ?Sized
[src]

impl<T, U> TryInto for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

impl<T> DeserializeOwned for T where
    T: Deserialize<'de>, 
[src]

impl<T> Erased for T