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 for a switch.
#[derive(Clone, Debug, serde::Deserialize, serde::Serialize)]
#[derive(derivative::Derivative)]
#[derivative(Default)]
pub struct LifeTime {
    /// 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 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 = "SwitchMetrics.v1_0_0.json";
}