// Generated by redfish-codegen. Do not modify.
#[derive(Clone, Debug, serde::Deserialize, serde::Serialize)]
pub enum PowerState {
/// The resource is powered on.
On,
/// The resource is powered off. The components within the resource might continue to have AUX power.
Off,
/// A temporary state between off and on. The components within the resource can take time to process the power on action.
PoweringOn,
/// A temporary state between on and off. The components within the resource can take time to process the power off action.
PoweringOff,
/// The resource is paused. Added in version v1_13_0.
Paused,
}
#[allow(clippy::derivable_impls)]
impl Default for PowerState {
fn default() -> PowerState {
PowerState::On
}
}
impl crate::Metadata<'static> for PowerState {
const JSON_SCHEMA: &'static str = "Resource.json";
}