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 PowerState {
    /// Power on.
    On,
    /// Power off.
    Off,
    /// This value shall indicate the resource will transition to a power off state, then transition to a power on state.  Upon successful completion, the PowerState property, if supported, shall contain the value `On`. Added in version v1_5_0.
    PowerCycle,
}

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

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