redfish_codegen/models/processor/v1_18_0/
memory_summary.rs

1// Generated by redfish-codegen. Do not modify.
2
3use crate::models;
4
5/// The summary of all memory associated with a processor.
6#[derive(Clone, Debug, serde::Deserialize, serde::Serialize)]
7#[derive(derivative::Derivative)]
8#[derivative(Default)]
9pub struct MemorySummary {
10    /// An indication of whether memory ECC mode is enabled for this processor.
11    #[serde(rename = "ECCModeEnabled")]
12    #[serde(default, skip_serializing_if = "Option::is_none")]
13    pub ecc_mode_enabled: Option<bool>,
14    #[serde(rename = "Metrics")]
15    #[serde(default, skip_serializing_if = "Option::is_none")]
16    pub metrics: Option<models::odata_v4::IdRef>,
17    /// Total size of cache memory of this processor.
18    #[serde(rename = "TotalCacheSizeMiB")]
19    #[serde(default, skip_serializing_if = "Option::is_none")]
20    pub total_cache_size_mi_b: Option<i64>,
21    /// Total size of non-cache, volatile or non-volatile memory attached to this processor.  Examples include DRAMs and NV-DIMMs that are not configured as block storage.
22    #[serde(rename = "TotalMemorySizeMiB")]
23    #[serde(default, skip_serializing_if = "Option::is_none")]
24    pub total_memory_size_mi_b: Option<i64>,
25}
26
27impl crate::Metadata<'static> for MemorySummary {
28    const JSON_SCHEMA: &'static str = "Processor.v1_18_0.json";
29}