pub struct KeyboardInfo {
pub name: String,
pub vendor_id: u16,
pub product_id: u16,
pub manufacturer: Option<String>,
pub product_name: Option<String>,
pub serial_number: Option<String>,
pub board: Option<String>,
pub chip: Option<String>,
pub usb_enable: Option<bool>,
}Expand description
Configurations for keyboard info
Fields§
§name: StringKeyboard name
vendor_id: u16Vender id
product_id: u16Product id
manufacturer: Option<String>Manufacturer
product_name: Option<String>Product name, if not set, it will use name as default
serial_number: Option<String>Serial number
board: Option<String>Board name(if a supported board is used)
chip: Option<String>Chip model
usb_enable: Option<bool>enable usb
Trait Implementations§
Source§impl Clone for KeyboardInfo
impl Clone for KeyboardInfo
Source§fn clone(&self) -> KeyboardInfo
fn clone(&self) -> KeyboardInfo
Returns a duplicate of the value. Read more
1.0.0§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for KeyboardInfo
impl Debug for KeyboardInfo
Source§impl Default for KeyboardInfo
impl Default for KeyboardInfo
Source§fn default() -> KeyboardInfo
fn default() -> KeyboardInfo
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for KeyboardInfo
impl<'de> Deserialize<'de> for KeyboardInfo
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
Auto Trait Implementations§
impl Freeze for KeyboardInfo
impl RefUnwindSafe for KeyboardInfo
impl Send for KeyboardInfo
impl Sync for KeyboardInfo
impl Unpin for KeyboardInfo
impl UnwindSafe for KeyboardInfo
Blanket Implementations§
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§unsafe fn clone_to_uninit(&self, dest: *mut u8)
unsafe fn clone_to_uninit(&self, dest: *mut u8)
🔬This is a nightly-only experimental API. (
clone_to_uninit)