redfish-codegen 0.3.1

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


/// Describes the options for the access characteristics of an endpoint.
#[derive(Clone, Debug, serde::Deserialize, serde::Serialize)]
pub enum AccessState {
    /// This value shall indicate each endpoint is in an active and optimized state.
    Optimized,
    /// This value shall indicate each endpoint is in an active and non-optimized state.
    NonOptimized,
    /// This value shall indicate each endpoint is in a standby state.
    Standby,
    /// This value shall indicate each endpoint is in an unavailable state.
    Unavailable,
    /// This value shall indicate each endpoint is transitioning to a new state.
    Transitioning,
}

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

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