redfish-codegen 0.3.1

An unopinionated translation of the Redfish specification into Rust.
Documentation
// Generated by redfish-codegen. Do not modify.


/// The capacity of specific data type in a data store.
#[derive(Clone, Debug, serde::Deserialize, serde::Serialize)]
#[derive(derivative::Derivative)]
#[derivative(Default)]
pub struct CapacityInfo {
    /// The number of bytes currently allocated by the storage system in this data store for this data type.
    #[serde(rename = "AllocatedBytes")]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub allocated_bytes: Option<i64>,
    /// The number of bytes consumed in this data store for this data type.
    #[serde(rename = "ConsumedBytes")]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub consumed_bytes: Option<i64>,
    /// The number of bytes the storage system guarantees can be allocated in this data store for this data type.
    #[serde(rename = "GuaranteedBytes")]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub guaranteed_bytes: Option<i64>,
    /// The maximum number of bytes that can be allocated in this data store for this data type.
    #[serde(rename = "ProvisionedBytes")]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub provisioned_bytes: Option<i64>,
}

impl crate::Metadata<'static> for CapacityInfo {
    const JSON_SCHEMA: &'static str = "Capacity.v1_1_3.json";
}