pub struct State {
pub on: bool,
pub bri: u8,
pub hue: u16,
pub sat: u8,
pub effect: String,
pub xy: [f32; 2],
pub ct: u32,
pub alert: String,
pub colormode: String,
pub mode: String,
pub reachable: bool,
}Expand description
This object contains the state part of each light
Fields§
§on: bool§bri: u8§hue: u16§sat: u8§effect: String§xy: [f32; 2]§ct: u32§alert: String§colormode: String§mode: String§reachable: boolTrait Implementations§
Source§impl<'de> Deserialize<'de> for State
impl<'de> Deserialize<'de> for State
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
Source§impl From<State> for SendableState
impl From<State> for SendableState
Auto Trait Implementations§
impl Freeze for State
impl RefUnwindSafe for State
impl Send for State
impl Sync for State
impl Unpin for State
impl UnsafeUnpin for State
impl UnwindSafe for State
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more