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 PowerMode {
    /// This value shall indicate the system performs at the highest speeds possible.  This mode should be used when performance is the top priority.
    MaximumPerformance,
    /// 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`.
    BalancedPerformance,
    /// 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.
    PowerSaving,
    /// This value shall indicate the system performs at a static base speed.
    Static,
    /// This value shall indicate the system performs at a operating system controlled power mode.
    OSControlled,
    /// This value shall indicate the system performs at an OEM-defined power mode.
    OEM,
}

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

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