redfish_codegen/models/memory/v1_17_1/
cxl.rs

1// Generated by redfish-codegen. Do not modify.
2
3
4/// CXL properties for a memory device.
5#[derive(Clone, Debug, serde::Deserialize, serde::Serialize)]
6#[derive(derivative::Derivative)]
7#[derivative(Default)]
8pub struct CXL {
9    /// The size of the label storage area in bytes of this memory device.
10    #[serde(rename = "LabelStorageSizeBytes")]
11    #[serde(default, skip_serializing_if = "Option::is_none")]
12    pub label_storage_size_bytes: Option<i64>,
13    /// Total device non-volatile capacity in MiB.  The value shall be in multiples of 256MiB.
14    #[serde(rename = "StagedNonVolatileSizeMiB")]
15    #[serde(default, skip_serializing_if = "Option::is_none")]
16    pub staged_non_volatile_size_mi_b: Option<i64>,
17    /// Total device non-volatile capacity in MiB staged for next activation.  This value shall be in multiples of 256 MiB.
18    #[serde(rename = "StagedVolatileSizeMiB")]
19    #[serde(default, skip_serializing_if = "Option::is_none")]
20    pub staged_volatile_size_mi_b: Option<i64>,
21}
22
23impl crate::Metadata<'static> for CXL {
24    const JSON_SCHEMA: &'static str = "Memory.v1_17_1.json";
25}