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 an interleave set for a memory chunk.
#[derive(Clone, Debug, serde::Deserialize, serde::Serialize)]
#[derive(derivative::Derivative)]
#[derivative(Default)]
pub struct InterleaveSet {
    #[serde(rename = "Memory")]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub memory: Option<models::odata_v4::IdRef>,
    /// Level of the interleave set for multi-level tiered memory.
    #[serde(rename = "MemoryLevel")]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub memory_level: Option<i64>,
    /// Offset within the DIMM that corresponds to the start of this memory region, measured in mebibytes (MiB).
    #[serde(rename = "OffsetMiB")]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub offset_mi_b: Option<i64>,
    /// DIMM region identifier.
    #[serde(rename = "RegionId")]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub region_id: Option<String>,
    /// Size of this memory region measured in mebibytes (MiB).
    #[serde(rename = "SizeMiB")]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub size_mi_b: Option<i64>,
}

impl crate::Metadata<'static> for InterleaveSet {
    const JSON_SCHEMA: &'static str = "MemoryChunks.v1_5_0.json";
}