pub struct UsbIdentity {
pub vendor_id: u16,
pub product_id: u16,
pub serial_number: Option<String>,
}Expand description
Values for UsbIdentity.
Fields§
§vendor_id: u16USB vendor identifier.
product_id: u16USB product identifier.
serial_number: Option<String>USB serial number when available.
Trait Implementations§
Source§impl Clone for UsbIdentity
impl Clone for UsbIdentity
Source§impl Debug for UsbIdentity
impl Debug for UsbIdentity
Source§impl<'de> Deserialize<'de> for UsbIdentity
impl<'de> Deserialize<'de> for UsbIdentity
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
impl Eq for UsbIdentity
Source§impl PartialEq for UsbIdentity
impl PartialEq for UsbIdentity
Source§impl Serialize for UsbIdentity
impl Serialize for UsbIdentity
impl StructuralPartialEq for UsbIdentity
Auto Trait Implementations§
impl Forget for UsbIdentity
impl Freeze for UsbIdentity
impl RefUnwindSafe for UsbIdentity
impl Send for UsbIdentity
impl Sync for UsbIdentity
impl Unpin for UsbIdentity
impl UnsafeUnpin for UsbIdentity
impl UnwindSafe for UsbIdentity
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