pub struct Switch {
pub mount: String,
pub brand: String,
pub typ: String,
}Expand description
A struct representing a key switch.
Fields§
§mount: StringThe switch mount. Typically either "cherry" or "alps".
brand: StringThe switch brand. KLE uses lowercase brand names.
typ: StringThe switch type. KLE uses either part number or colour depending on the brand.
Trait Implementations§
impl StructuralPartialEq for Switch
Auto Trait Implementations§
impl Freeze for Switch
impl RefUnwindSafe for Switch
impl Send for Switch
impl Sync for Switch
impl Unpin for Switch
impl UnwindSafe for Switch
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