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 StatusIndicator {
    /// The drive is OK.
    OK,
    /// The drive has failed.
    Fail,
    /// The drive is being rebuilt.
    Rebuild,
    /// The drive still works but is predicted to fail soon.
    PredictiveFailureAnalysis,
    /// The drive has been marked to automatically rebuild and replace a failed drive.
    Hotspare,
    /// The array to which this drive belongs has been degraded.
    InACriticalArray,
    /// The array to which this drive belongs has failed.
    InAFailedArray,
}

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

impl crate::Metadata<'static> for StatusIndicator {
    const JSON_SCHEMA: &'static str = "Drive.v1_17_0.json";
}