pub struct Hardware {
pub model: Option<String>,
pub manufacturer: Option<String>,
pub serial: String,
pub cpu_name: Option<String>,
pub cpu_count: Option<i32>,
pub memory_bytes: Option<i64>,
}Fields§
§model: Option<String>§manufacturer: Option<String>§serial: String§cpu_name: Option<String>§cpu_count: Option<i32>§memory_bytes: Option<i64>Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Hardware
impl<'de> Deserialize<'de> for Hardware
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 StructuralPartialEq for Hardware
Auto Trait Implementations§
impl Freeze for Hardware
impl RefUnwindSafe for Hardware
impl Send for Hardware
impl Sync for Hardware
impl Unpin for Hardware
impl UnsafeUnpin for Hardware
impl UnwindSafe for Hardware
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