redfish_codegen/models/storage/v1_8_3/
cache_summary.rs

1// Generated by redfish-codegen. Do not modify.
2
3use crate::models;
4
5/// This type describes the cache memory of the storage controller in general detail.
6#[derive(Clone, Debug, serde::Deserialize, serde::Serialize)]
7#[derive(derivative::Derivative)]
8#[derivative(Default)]
9pub struct CacheSummary {
10    /// The portion of the cache memory that is persistent, measured in MiB.
11    #[serde(rename = "PersistentCacheSizeMiB")]
12    #[serde(default, skip_serializing_if = "Option::is_none")]
13    pub persistent_cache_size_mi_b: Option<i64>,
14    #[serde(rename = "Status")]
15    #[serde(default, skip_serializing_if = "Option::is_none")]
16    pub status: Option<models::resource::Status>,
17    /// The total configured cache memory, measured in MiB.
18    #[serde(rename = "TotalCacheSizeMiB")]
19    pub total_cache_size_mi_b: i64,
20}
21
22impl crate::Metadata<'static> for CacheSummary {
23    const JSON_SCHEMA: &'static str = "Storage.v1_8_3.json";
24}