redfish-codegen 0.3.1

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


#[derive(Clone, Debug, serde::Deserialize, serde::Serialize)]
pub enum CableStatus {
    /// This value shall indicate the cable is operating normally.  The State property in Status shall contain the value `Enabled` and The Health property in Status shall contain the value `OK`.
    Normal,
    /// This value shall indicate the cable is degraded.  The State property in Status shall contain the value `Enabled` and The Health property in Status shall contain the value `Warning`.
    Degraded,
    /// This value shall indicate the cable has failed.  The State property in Status shall contain the value `Enabled` and The Health property in Status shall contain the value `Critical`.
    Failed,
    /// This value shall indicate the cable is under test.  The State property in Status shall contain the value `InTest`.
    Testing,
    /// This value shall indicate the cable is disabled.  The State property in Status shall contain the value `Disabled`.
    Disabled,
    /// This value shall indicate the status for the cable is not defined by the user.  If implemented, the service shall determine the value of the State and Health properties in Status.
    SetByService,
}

#[allow(clippy::derivable_impls)]
impl Default for CableStatus {
     fn default() -> CableStatus {
        CableStatus::Normal
     }
}

impl crate::Metadata<'static> for CableStatus {
    const JSON_SCHEMA: &'static str = "Cable.v1_2_0.json";
}