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;

/// The memory of the system in general detail.
#[derive(Clone, Debug, serde::Deserialize, serde::Serialize)]
#[derive(derivative::Derivative)]
#[derivative(Default)]
pub struct MemorySummary {
    #[serde(rename = "MemoryMirroring")]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub memory_mirroring: Option<models::computer_system::v1_20_0::MemoryMirroring>,
    #[serde(rename = "Metrics")]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub metrics: Option<models::odata_v4::IdRef>,
    #[serde(rename = "Status")]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub status: Option<models::resource::Status>,
    /// The total configured operating system-accessible memory (RAM), measured in GiB.
    #[serde(rename = "TotalSystemMemoryGiB")]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub total_system_memory_gi_b: Option<f64>,
    /// The total configured, system-accessible persistent memory, measured in GiB.
    #[serde(rename = "TotalSystemPersistentMemoryGiB")]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub total_system_persistent_memory_gi_b: Option<f64>,
}

impl crate::Metadata<'static> for MemorySummary {
    const JSON_SCHEMA: &'static str = "ComputerSystem.v1_20_0.json";
}