redfish_codegen/models/computer_system/v1_20_1/
power_mode.rs

1// Generated by redfish-codegen. Do not modify.
2
3
4#[derive(Clone, Debug, serde::Deserialize, serde::Serialize)]
5pub enum PowerMode {
6    /// This value shall indicate the system performs at the highest speeds possible.  This mode should be used when performance is the top priority.
7    MaximumPerformance,
8    /// This value shall indicate the system performs at the highest speeds possible when the utilization is high and performs at reduced speeds when the utilization is low to save power.  This mode is a compromise between `MaximumPerformance` and `PowerSaving`.
9    BalancedPerformance,
10    /// This value shall indicate the system performs at reduced speeds to save power.  This mode should be used when power saving is the top priority.
11    PowerSaving,
12    /// This value shall indicate the system performs at a static base speed.
13    Static,
14    /// This value shall indicate the system performs at a operating system controlled power mode.
15    OSControlled,
16    /// This value shall indicate the system performs at an OEM-defined power mode.
17    OEM,
18}
19
20#[allow(clippy::derivable_impls)]
21impl Default for PowerMode {
22     fn default() -> PowerMode {
23        PowerMode::MaximumPerformance
24     }
25}
26
27impl crate::Metadata<'static> for PowerMode {
28    const JSON_SCHEMA: &'static str = "ComputerSystem.v1_20_1.json";
29}