#[non_exhaustive]pub struct PeripheralDevice {
pub class: Option<String>,
pub model: Option<String>,
pub name: Option<String>,
pub serial_number: Option<String>,
pub type: Option<String>,
pub type_id: Option<i64>,
pub uid: Option<String>,
pub vendor_id_list: Option<Vec<String>>,
pub vendor_name: Option<String>,
}Expand description
Peripheral Device
The peripheral device object describes the properties of external, connectable, and detachable hardware.
[] Category: | Name: peripheral_device
Constraints:
- at_least_one:
[name,uid]
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.class: Option<String>Class
The class of the peripheral device.
optional
model: Option<String>Model
The peripheral device model.
recommended
name: Option<String>Name
The name of the peripheral device.
required
serial_number: Option<String>Serial Number
The peripheral device serial number.
recommended
type: Option<String>Peripheral Device Type
The Peripheral Device type, normalized to the caption of the type_id value. In the case of ‘Other’, it is defined by the source.
optional
type_id: Option<i64>Peripheral Device Type ID
The normalized peripheral device type ID.
recommended
uid: Option<String>Unique ID
The unique identifier of the peripheral device.
recommended
vendor_id_list: Option<Vec<String>>Vendor ID List
The list of vendor IDs for the peripheral device.
recommended
vendor_name: Option<String>Vendor Name
The primary vendor name for the peripheral device.
recommended
Trait Implementations§
Source§impl Clone for PeripheralDevice
impl Clone for PeripheralDevice
Source§fn clone(&self) -> PeripheralDevice
fn clone(&self) -> PeripheralDevice
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more