Struct kle_serial::Switch
source · 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§
Auto Trait Implementations§
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