sinf 0.1.0

Library for obtaining in-depth system information at both the hardware and software levels
Documentation
/// A battery or power supply.
#[cfg_attr(feature = "serde", derive(serde::Serialize, serde::Deserialize))]
#[derive(Debug, Clone, PartialEq)]
pub struct Battery {
    /// Kernel name.
    pub name: String,
    /// Charging status.
    pub status: Option<String>,
    /// Charge percentage.
    pub capacity: Option<f32>,
    /// Current energy in µWh.
    pub energy_now: Option<u64>,
    /// Full energy in µWh.
    pub energy_full: Option<u64>,
    /// Current power draw in µW.
    pub power_draw: Option<u64>,
    /// Voltage in µV.
    pub voltage: Option<u64>,
    /// Charge cycles.
    pub cycle_count: Option<u32>,
    /// Health string.
    pub health: Option<String>,
    /// Manufacturer.
    pub manufacturer: Option<String>,
    /// Model name.
    pub model: Option<String>,
    /// Serial number.
    pub serial: Option<String>,
    /// Battery technology.
    pub technology: Option<String>,
}