redfish-codegen 0.3.1

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


/// The conditions that would generate an alert to the CXL Fabric Manager or host.
#[derive(Clone, Debug, serde::Deserialize, serde::Serialize)]
#[derive(derivative::Derivative)]
#[derivative(Default)]
pub struct AlertCapabilities {
    /// Indicates whether correctable ECC errors generate an alert to the CXL Fabric Manager or host.
    #[serde(rename = "CorrectableECCError")]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub correctable_ecc_error: Option<bool>,
    /// Indicates whether spare block conditions generate an alert to the CXL Fabric Manager or host.
    #[serde(rename = "SpareBlock")]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub spare_block: Option<bool>,
    /// Indicates whether temperature conditions generate an alert to the CXL Fabric Manager or host.
    #[serde(rename = "Temperature")]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub temperature: Option<bool>,
    /// Indicates whether uncorrectable ECC errors generate an alert to the CXL Fabric Manager or host.
    #[serde(rename = "UncorrectableECCError")]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub uncorrectable_ecc_error: Option<bool>,
}

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