pub struct HardwareDevice {
pub key: HardwareDeviceKey,
pub category: HardwareCategory,
pub model: String,
pub vendor: Option<String>,
pub location: Option<String>,
pub plugin_id: String,
pub plugin_device_id: String,
pub sensor_ids: Vec<SensorId>,
}Fields§
§key: HardwareDeviceKey§category: HardwareCategory§model: String§vendor: Option<String>§location: Option<String>§plugin_id: String§plugin_device_id: String§sensor_ids: Vec<SensorId>Trait Implementations§
Source§impl Clone for HardwareDevice
impl Clone for HardwareDevice
Source§fn clone(&self) -> HardwareDevice
fn clone(&self) -> HardwareDevice
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for HardwareDevice
impl Debug for HardwareDevice
Source§impl<'de> Deserialize<'de> for HardwareDevice
impl<'de> Deserialize<'de> for HardwareDevice
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
Source§impl PartialEq for HardwareDevice
impl PartialEq for HardwareDevice
Source§fn eq(&self, other: &HardwareDevice) -> bool
fn eq(&self, other: &HardwareDevice) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for HardwareDevice
impl Serialize for HardwareDevice
impl StructuralPartialEq for HardwareDevice
Auto Trait Implementations§
impl Freeze for HardwareDevice
impl RefUnwindSafe for HardwareDevice
impl Send for HardwareDevice
impl Sync for HardwareDevice
impl Unpin for HardwareDevice
impl UnsafeUnpin for HardwareDevice
impl UnwindSafe for HardwareDevice
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