pub struct LedConfig {
pub mode: String,
pub brightness: u32,
}
Expand description
The Awair device’s LED configuration state, as returned from the Local API.
Fields§
§mode: String
The LED’s operating mode.
brightness: u32
The LED’s brightness (unknown units).
Trait Implementations§
Source§impl<'de> Deserialize<'de> for LedConfig
impl<'de> Deserialize<'de> for LedConfig
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
Auto Trait Implementations§
impl Freeze for LedConfig
impl RefUnwindSafe for LedConfig
impl Send for LedConfig
impl Sync for LedConfig
impl Unpin for LedConfig
impl UnwindSafe for LedConfig
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