pub struct Nl {
pub on: Option<bool>,
pub dur: Option<u8>,
pub fade: Option<bool>,
pub mode: Option<u8>,
pub tbri: Option<u8>,
pub rem: Option<i16>,
}
Fields§
§on: Option<bool>
Nightlight currently active
dur: Option<u8>
Duration of nightlight in minutes
fade: Option<bool>
If true, the light will gradually dim over the course of the nightlight duration. If false, it will instantly turn to the target brightness once the duration has elapsed. Removed in 0.13.0 (use mode instead)
mode: Option<u8>
0 to 3; Nightlight mode (0: instant, 1: fade, 2: color fade, 3: sunrise) (available since 0.10.2)
tbri: Option<u8>
Target brightness of nightlight feature
rem: Option<i16>
-1 to 15300; Remaining nightlight duration in seconds, -1 if not active. Only in state response, can not be set.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Nl
impl<'de> Deserialize<'de> for Nl
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 StructuralPartialEq for Nl
Auto Trait Implementations§
impl Freeze for Nl
impl RefUnwindSafe for Nl
impl Send for Nl
impl Sync for Nl
impl Unpin for Nl
impl UnwindSafe for Nl
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