sinf 0.1.0

Library for obtaining in-depth system information at both the hardware and software levels
Documentation
use crate::{Error, ProductInner};

/// Provides product information.
pub struct Product;

impl Product {
    /// Returns the product name.
    pub fn name() -> Result<String, Error> {
        ProductInner::name()
    }

    /// Returns the product family identifier.
    pub fn family() -> Result<String, Error> {
        ProductInner::family()
    }

    /// Returns the product serial number.
    pub fn serial_number() -> Result<String, Error> {
        ProductInner::serial_number()
    }

    /// Returns the product Stock Keeping Unit (SKU).
    #[doc(alias = "sku")]
    pub fn stock_keeping_unit() -> Result<String, Error> {
        ProductInner::stock_keeping_unit()
    }

    /// Returns the product UUID.
    pub fn uuid() -> Result<String, Error> {
        ProductInner::uuid()
    }

    /// Returns the product version.
    pub fn version() -> Result<String, Error> {
        ProductInner::version()
    }

    /// Returns the product vendor name.
    pub fn vendor_name() -> Result<String, Error> {
        ProductInner::vendor_name()
    }
}