pub struct LightPut {
pub on: Option<bool>,
pub brightness: Option<u8>,
pub temperature: Option<u16>,
}Fields§
§on: Option<bool>State
brightness: Option<u8>Range: 0 - 100
temperature: Option<u16>Range: 2900 - 7000 Kelvin
Trait Implementations§
Source§impl<'de> Deserialize<'de> for LightPut
impl<'de> Deserialize<'de> for LightPut
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
impl Copy for LightPut
Auto Trait Implementations§
impl Freeze for LightPut
impl RefUnwindSafe for LightPut
impl Send for LightPut
impl Sync for LightPut
impl Unpin for LightPut
impl UnwindSafe for LightPut
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