pub struct Def {
pub ps: Option<u8>,
pub on: Option<bool>,
pub bri: Option<u8>,
}
Expand description
defaults
Fields§
§ps: Option<u8>
save preset to load after power-up
on: Option<bool>
turn on LEDs at power-up
bri: Option<u8>
default brightness
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Def
impl<'de> Deserialize<'de> for Def
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 Def
Auto Trait Implementations§
impl Freeze for Def
impl RefUnwindSafe for Def
impl Send for Def
impl Sync for Def
impl Unpin for Def
impl UnwindSafe for Def
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