pub struct HardwareSummary {
pub mac_addresses_partial: Vec<String>,
pub mac_count: usize,
pub hostname_partial: Option<String>,
pub disk_count: usize,
pub disk_ids_hashed: Vec<String>,
pub has_machine_id: bool,
pub fingerprint_hash: String,
}Expand description
Sanitized hardware information summary
Fields§
§mac_addresses_partial: Vec<String>Partial MAC addresses (first 3 octets shown, rest masked)
mac_count: usizeNumber of detected MAC addresses
hostname_partial: Option<String>Partial hostname (first 4 chars + hash suffix)
disk_count: usizeNumber of detected disk IDs
disk_ids_hashed: Vec<String>Partial disk identifiers (hashed)
has_machine_id: boolMachine ID present (yes/no, not actual value)
fingerprint_hash: StringCombined fingerprint hash (for matching purposes)
Implementations§
Source§impl HardwareSummary
impl HardwareSummary
Sourcepub fn from_hardware_info(hw: &HardwareInfo) -> Self
pub fn from_hardware_info(hw: &HardwareInfo) -> Self
Create from existing HardwareInfo
Trait Implementations§
Source§impl Clone for HardwareSummary
impl Clone for HardwareSummary
Source§fn clone(&self) -> HardwareSummary
fn clone(&self) -> HardwareSummary
Returns a duplicate of the value. Read more
1.0.0 · 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 HardwareSummary
impl Debug for HardwareSummary
Source§impl<'de> Deserialize<'de> for HardwareSummary
impl<'de> Deserialize<'de> for HardwareSummary
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
Auto Trait Implementations§
impl Freeze for HardwareSummary
impl RefUnwindSafe for HardwareSummary
impl Send for HardwareSummary
impl Sync for HardwareSummary
impl Unpin for HardwareSummary
impl UnsafeUnpin for HardwareSummary
impl UnwindSafe for HardwareSummary
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