pub struct LayerConfigInfo {
pub layer_id: usize,
pub name: String,
pub mode: LayerMode,
pub remap_count: usize,
pub led_color: (u8, u8, u8),
pub led_zone: Option<LedZone>,
}Expand description
Layer configuration information for IPC
This structure provides layer configuration details for GUI display and modification via IPC.
Fields§
§layer_id: usizeLayer ID (0 = base, 1+ = additional layers)
name: StringHuman-readable layer name (e.g., “Base”, “Gaming”, “Work”)
mode: LayerModeHow this layer is activated (hold or toggle)
remap_count: usizeNumber of remappings configured for this layer
led_color: (u8, u8, u8)LED color for this layer (RGB)
led_zone: Option<LedZone>LED zone to display layer color
Trait Implementations§
Source§impl Clone for LayerConfigInfo
impl Clone for LayerConfigInfo
Source§fn clone(&self) -> LayerConfigInfo
fn clone(&self) -> LayerConfigInfo
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for LayerConfigInfo
impl Debug for LayerConfigInfo
Source§impl<'de> Deserialize<'de> for LayerConfigInfo
impl<'de> Deserialize<'de> for LayerConfigInfo
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
Source§impl PartialEq for LayerConfigInfo
impl PartialEq for LayerConfigInfo
Source§impl Serialize for LayerConfigInfo
impl Serialize for LayerConfigInfo
impl StructuralPartialEq for LayerConfigInfo
Auto Trait Implementations§
impl Freeze for LayerConfigInfo
impl RefUnwindSafe for LayerConfigInfo
impl Send for LayerConfigInfo
impl Sync for LayerConfigInfo
impl Unpin for LayerConfigInfo
impl UnsafeUnpin for LayerConfigInfo
impl UnwindSafe for LayerConfigInfo
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