redfish-codegen 0.3.1

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


/// The memory metrics for the lifetime of the memory.
#[derive(Clone, Debug, serde::Deserialize, serde::Serialize)]
#[derive(derivative::Derivative)]
#[derivative(Default)]
pub struct LifeTime {
    /// The number of blocks read for the lifetime of the memory.
    #[serde(rename = "BlocksRead")]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub blocks_read: Option<i64>,
    /// The number of blocks written for the lifetime of the memory.
    #[serde(rename = "BlocksWritten")]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub blocks_written: Option<i64>,
    /// The number of the correctable errors for the lifetime of the memory.
    #[serde(rename = "CorrectableECCErrorCount")]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub correctable_ecc_error_count: Option<i64>,
    /// The number of indeterminate correctable errors for the lifetime of the memory.
    #[serde(rename = "IndeterminateCorrectableErrorCount")]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub indeterminate_correctable_error_count: Option<i64>,
    /// The number of indeterminate uncorrectable errors for the lifetime of the memory.
    #[serde(rename = "IndeterminateUncorrectableErrorCount")]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub indeterminate_uncorrectable_error_count: Option<i64>,
    /// The number of the uncorrectable errors for the lifetime of the memory.
    #[serde(rename = "UncorrectableECCErrorCount")]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub uncorrectable_ecc_error_count: Option<i64>,
}

impl crate::Metadata<'static> for LifeTime {
    const JSON_SCHEMA: &'static str = "MemoryMetrics.v1_7_0.json";
}