pub struct Metadata {
pub background_color: Color,
pub background: Background,
pub radii: String,
pub name: String,
pub author: String,
pub switch: Switch,
pub plate_mount: bool,
pub pcb_mount: bool,
pub notes: String,
}Expand description
The metadata for the keyboard layout.
Fields§
§background_color: ColorBackground colour for the layout.
background: BackgroundBackground style information for the layout.
radii: StringCorner radii for the background using CSS border-radius syntax.
name: StringThe name of the layout.
The author of the layout.
switch: SwitchThe default switch type used in this layout. This can be set separately for individual keys.
plate_mount: boolWhether the switch is plate mounted.
pcb_mount: boolWhether the switch is PCB mounted.
notes: StringNotes for the layout. KLE expects GitHub-flavoured Markdown and can render this using the preview button, but any string data is considered valid.
Trait Implementations§
impl StructuralPartialEq for Metadata
Auto Trait Implementations§
impl Freeze for Metadata
impl RefUnwindSafe for Metadata
impl Send for Metadata
impl Sync for Metadata
impl Unpin for Metadata
impl UnwindSafe for Metadata
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