#[non_exhaustive]pub struct Input {
pub identifier: String,
pub name: String,
pub input_type: String,
pub xkb_active_layout_name: Option<String>,
pub xkb_layout_names: Vec<String>,
pub xkb_active_layout_index: Option<i32>,
pub libinput: Option<Libinput>,
pub vendor: Option<i32>,
pub product: Option<i32>,
}
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. }
syntax; cannot be matched against without a wildcard ..
; and struct update syntax will not work.identifier: String
The identifier for the input device.
name: String
The human readable name for the device.
input_type: String
The device type. Currently this can be keyboard, pointer, touch, tablet_tool, tablet_pad, or switch.
xkb_active_layout_name: Option<String>
(Only keyboards) The name of the active keyboard layout in use.
xkb_layout_names: Vec<String>
(Only keyboards) A list a layout names configured for the keyboard.
xkb_active_layout_index: Option<i32>
(Only keyboards) The index of the active keyboard layout in use.
libinput: Option<Libinput>
(Only libinput devices) An object describing the current device settings. See below for more information.
vendor: Option<i32>
(Only libinput devices) The vendor code for the input device.
product: Option<i32>
(Only libinput devices) The product code for the input device.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Input
impl<'de> Deserialize<'de> for Input
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 Input
impl RefUnwindSafe for Input
impl Send for Input
impl Sync for Input
impl Unpin for Input
impl UnwindSafe for Input
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