redfish_codegen/models/resource/power_state.rs
1// Generated by redfish-codegen. Do not modify.
2
3
4#[derive(Clone, Debug, serde::Deserialize, serde::Serialize)]
5pub enum PowerState {
6 /// The resource is powered on.
7 On,
8 /// The resource is powered off. The components within the resource might continue to have AUX power.
9 Off,
10 /// A temporary state between off and on. The components within the resource can take time to process the power on action.
11 PoweringOn,
12 /// A temporary state between on and off. The components within the resource can take time to process the power off action.
13 PoweringOff,
14 /// The resource is paused. Added in version v1_13_0.
15 Paused,
16}
17
18#[allow(clippy::derivable_impls)]
19impl Default for PowerState {
20 fn default() -> PowerState {
21 PowerState::On
22 }
23}
24
25impl crate::Metadata<'static> for PowerState {
26 const JSON_SCHEMA: &'static str = "Resource.json";
27}