redfish-codegen 0.3.1

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


/// The alarm trip information about the memory.  These alarms are reset when the system resets.  Note that if they are re-discovered they can be reasserted.
#[derive(Clone, Debug, serde::Deserialize, serde::Serialize)]
#[derive(derivative::Derivative)]
#[derivative(Default)]
pub struct AlarmTrips {
    /// An indication of whether an address parity error was detected that a retry could not correct.
    #[serde(rename = "AddressParityError")]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub address_parity_error: Option<bool>,
    /// An indication of whether the correctable error threshold crossing alarm trip was detected.
    #[serde(rename = "CorrectableECCError")]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub correctable_ecc_error: Option<bool>,
    /// An indication of whether the spare block capacity crossing alarm trip was detected.
    #[serde(rename = "SpareBlock")]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub spare_block: Option<bool>,
    /// An indication of whether a temperature threshold alarm trip was detected.
    #[serde(rename = "Temperature")]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub temperature: Option<bool>,
    /// An indication of whether the uncorrectable error threshold alarm trip was detected.
    #[serde(rename = "UncorrectableECCError")]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub uncorrectable_ecc_error: Option<bool>,
}

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