#[non_exhaustive]pub struct HardwareMetric {
pub name: String,
pub mfg: String,
pub model: Option<String>,
pub hw_type: String,
pub metrics: Vec<ValueMetric>,
}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.name: String§mfg: String§model: Option<String>§hw_type: String§metrics: Vec<ValueMetric>Trait Implementations§
Source§impl Clone for HardwareMetric
impl Clone for HardwareMetric
Source§fn clone(&self) -> HardwareMetric
fn clone(&self) -> HardwareMetric
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 HardwareMetric
impl Debug for HardwareMetric
Source§impl PartialEq for HardwareMetric
impl PartialEq for HardwareMetric
Source§fn eq(&self, other: &HardwareMetric) -> bool
fn eq(&self, other: &HardwareMetric) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for HardwareMetric
Auto Trait Implementations§
impl Freeze for HardwareMetric
impl RefUnwindSafe for HardwareMetric
impl Send for HardwareMetric
impl Sync for HardwareMetric
impl Unpin for HardwareMetric
impl UnsafeUnpin for HardwareMetric
impl UnwindSafe for HardwareMetric
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