redfish_codegen/models/circuit/
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    /// Power on.
7    On,
8    /// Power off.
9    Off,
10    /// 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.
11    PowerCycle,
12}
13
14#[allow(clippy::derivable_impls)]
15impl Default for PowerState {
16     fn default() -> PowerState {
17        PowerState::On
18     }
19}
20
21impl crate::Metadata<'static> for PowerState {
22    const JSON_SCHEMA: &'static str = "Circuit.json";
23}