pub struct Light {
pub scale_bri: Option<u8>,
pub pal_mode: Option<u8>,
pub aseg: Option<bool>,
pub gc: Option<Gc>,
pub tr: Option<Tr>,
pub nl: Option<Nl>,
}
Fields§
§scale_bri: Option<u8>
% of brightness to set (to limit power, if you set it to 50 and set bri to 255, actual brightness will be 127)
pal_mode: Option<u8>
paletteBlend: 0 - wrap when moving, 1 - always wrap, 2 - never wrap, 3 - none (undefined)
aseg: Option<bool>
If true, a segment per bus will be created on boot and LED settings save. If false, only one segment spanning the total LEDs is created, but not on LED settings save if there is more than one segment currently
gc: Option<Gc>
§tr: Option<Tr>
§nl: Option<Nl>
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Light
impl<'de> Deserialize<'de> for Light
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 Light
Auto Trait Implementations§
impl Freeze for Light
impl RefUnwindSafe for Light
impl Send for Light
impl Sync for Light
impl Unpin for Light
impl UnwindSafe for Light
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