sinf 0.1.0

Library for obtaining in-depth system information at both the hardware and software levels
Documentation
/// BIOS information.
#[cfg_attr(feature = "serde", derive(serde::Serialize, serde::Deserialize))]
#[derive(Debug, Clone, PartialEq, Eq)]
pub struct Bios {
    /// BIOS vendor.
    pub vendor: Option<String>,
    /// BIOS version.
    pub version: Option<String>,
    /// BIOS release date.
    pub release_date: Option<String>,
}

/// Motherboard information.
#[cfg_attr(feature = "serde", derive(serde::Serialize, serde::Deserialize))]
#[derive(Debug, Clone, PartialEq, Eq)]
pub struct Board {
    /// Board vendor.
    pub vendor: Option<String>,
    /// Board name.
    pub name: Option<String>,
    /// Board version.
    pub version: Option<String>,
    /// Board serial number.
    pub serial: Option<String>,
    /// Board asset tag.
    pub asset_tag: Option<String>,
}

/// Chassis information.
#[cfg_attr(feature = "serde", derive(serde::Serialize, serde::Deserialize))]
#[derive(Debug, Clone, PartialEq, Eq)]
pub struct Chassis {
    /// Chassis vendor.
    pub vendor: Option<String>,
    /// Chassis type.
    pub kind: Option<String>,
    /// Chassis serial number.
    pub serial: Option<String>,
    /// Chassis asset tag.
    pub asset_tag: Option<String>,
}

/// A memory module reported by SMBIOS.
#[cfg_attr(feature = "serde", derive(serde::Serialize, serde::Deserialize))]
#[derive(Debug, Clone, PartialEq, Eq)]
pub struct MemoryDevice {
    /// Device locator.
    pub locator: Option<String>,
    /// Bank locator.
    pub bank: Option<String>,
    /// Size in bytes.
    pub size_bytes: Option<u64>,
    /// Configured speed in MT/s.
    pub speed_mts: Option<u32>,
    /// Configured speed in MT/s.
    pub configured_speed_mts: Option<u32>,
    /// Memory type.
    pub memory_type: Option<String>,
    /// Form factor.
    pub form_factor: Option<String>,
    /// Manufacturer.
    pub manufacturer: Option<String>,
    /// Serial number.
    pub serial: Option<String>,
    /// Part number.
    pub part_number: Option<String>,
}