redfish-codegen 0.3.1

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

use crate::models;

/// This type describes the cache memory of the storage controller in general detail.
#[derive(Clone, Debug, serde::Deserialize, serde::Serialize)]
#[derive(derivative::Derivative)]
#[derivative(Default)]
pub struct CacheSummary {
    /// The portion of the cache memory that is persistent, measured in MiB.
    #[serde(rename = "PersistentCacheSizeMiB")]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub persistent_cache_size_mi_b: Option<i64>,
    #[serde(rename = "Status")]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub status: Option<models::resource::Status>,
    /// The total configured cache memory, measured in MiB.
    #[serde(rename = "TotalCacheSizeMiB")]
    pub total_cache_size_mi_b: i64,
}

impl crate::Metadata<'static> for CacheSummary {
    const JSON_SCHEMA: &'static str = "StorageController.v1_7_0.json";
}