#[non_exhaustive]
pub struct Input { pub identifier: String, pub name: String, pub vendor: i32, pub product: i32, pub input_type: String, pub xkb_active_layout_name: Option<String>, pub xkb_layout_names: Vec<String, Global>, pub xkb_active_layout_index: Option<i32>, pub libinput: Option<Libinput>, }

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.

vendor: i32

The vendor code for the input device.

product: i32

The product code for the input 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, Global>

(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.

Trait Implementations

Formats the value using the given formatter. Read more

Deserialize this value from the given Serde deserializer. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.