sinf 0.1.0

Library for obtaining in-depth system information at both the hardware and software levels
Documentation
use std::path::PathBuf;

/// A physical block device.
#[cfg_attr(feature = "serde", derive(serde::Serialize, serde::Deserialize))]
#[derive(Debug, Clone, PartialEq, Eq)]
pub struct StorageDevice {
    /// Kernel device name.
    pub name: String,
    /// Device path.
    pub path: PathBuf,
    /// Model.
    pub model: Option<String>,
    /// Serial number.
    pub serial: Option<String>,
    /// Firmware version.
    pub firmware: Option<String>,
    /// Vendor.
    pub vendor: Option<String>,
    /// Size in bytes.
    pub size_bytes: u64,
    /// Whether the device is removable.
    pub removable: bool,
    /// Whether the device is rotational.
    pub rotational: bool,
}