redfish-codegen 0.3.1

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


/// CXL properties for a memory device.
#[derive(Clone, Debug, serde::Deserialize, serde::Serialize)]
#[derive(derivative::Derivative)]
#[derivative(Default)]
pub struct CXL {
    /// The size of the label storage area in bytes of this memory device.
    #[serde(rename = "LabelStorageSizeBytes")]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub label_storage_size_bytes: Option<i64>,
    /// Total device non-volatile capacity in MiB.  The value shall be in multiples of 256MiB.
    #[serde(rename = "StagedNonVolatileSizeMiB")]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub staged_non_volatile_size_mi_b: Option<i64>,
    /// Total device non-volatile capacity in MiB staged for next activation.  This value shall be in multiples of 256 MiB.
    #[serde(rename = "StagedVolatileSizeMiB")]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub staged_volatile_size_mi_b: Option<i64>,
}

impl crate::Metadata<'static> for CXL {
    const JSON_SCHEMA: &'static str = "Memory.v1_17_1.json";
}