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 State {
    /// This function or resource is enabled.
    Enabled,
    /// This function or resource is disabled.
    Disabled,
    /// This function or resource is enabled but awaits an external action to activate it.
    StandbyOffline,
    /// This function or resource is part of a redundancy set and awaits a failover or other external action to activate it.
    StandbySpare,
    /// This function or resource is undergoing testing, or is in the process of capturing information for debugging.
    InTest,
    /// This function or resource is starting.
    Starting,
    /// This function or device is not currently present or detected.  This resource represents a capability or an available location where a device can be installed.
    Absent,
    /// This function or resource is present but cannot be used. Added in version v1_1_0.
    UnavailableOffline,
    /// The element does not process any commands but queues new requests. Added in version v1_2_0.
    Deferring,
    /// The element is enabled but only processes a restricted set of commands. Added in version v1_2_0.
    Quiesced,
    /// The element is updating and might be unavailable or degraded. Added in version v1_2_0.
    Updating,
    /// The element quality is within the acceptable range of operation. Added in version v1_9_0.
    Qualified,
}

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

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