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 since the last switch reset or ClearCurrentPeriod action for a switch.
#[derive(Clone, Debug, serde::Deserialize, serde::Serialize)]
#[derive(derivative::Derivative)]
#[derivative(Default)]
pub struct CurrentPeriod {
    /// The number of the correctable errors of memory since reset.
    #[serde(rename = "CorrectableECCErrorCount")]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub correctable_ecc_error_count: Option<i64>,
    /// The number of the uncorrectable errors of memory since reset.
    #[serde(rename = "UncorrectableECCErrorCount")]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub uncorrectable_ecc_error_count: Option<i64>,
}

impl crate::Metadata<'static> for CurrentPeriod {
    const JSON_SCHEMA: &'static str = "SwitchMetrics.v1_0_0.json";
}