pub struct Lighting {
pub enabled: bool,
pub color: String,
pub brightness: u8,
}Expand description
Per-device RGB lighting: a single static color, brightness, and on/off. Deliberately basic — per-key effects are a later addition.
Fields§
§enabled: bool§color: StringStatic color as 6 hex digits "RRGGBB" (no leading #).
brightness: u8Brightness percent, clamped to 0–100 on load.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Lighting
impl<'de> Deserialize<'de> for Lighting
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 Eq for Lighting
impl StructuralPartialEq for Lighting
Auto Trait Implementations§
impl Freeze for Lighting
impl RefUnwindSafe for Lighting
impl Send for Lighting
impl Sync for Lighting
impl Unpin for Lighting
impl UnsafeUnpin for Lighting
impl UnwindSafe for Lighting
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.