redfish_codegen/models/computer_system/v1_20_1/
idle_power_saver.rs

1// Generated by redfish-codegen. Do not modify.
2
3
4/// The idle power saver settings of a computer system.
5#[derive(Clone, Debug, serde::Deserialize, serde::Serialize)]
6#[derive(derivative::Derivative)]
7#[derivative(Default)]
8pub struct IdlePowerSaver {
9    /// An indication of whether idle power saver is enabled.
10    #[serde(rename = "Enabled")]
11    #[serde(default, skip_serializing_if = "Option::is_none")]
12    pub enabled: Option<bool>,
13    /// The duration in seconds the computer system is below the EnterUtilizationPercent value before the idle power save is activated.
14    #[serde(rename = "EnterDwellTimeSeconds")]
15    #[serde(default, skip_serializing_if = "Option::is_none")]
16    pub enter_dwell_time_seconds: Option<i64>,
17    /// The percentage of utilization that the computer system shall be lower than to enter idle power save.
18    #[serde(rename = "EnterUtilizationPercent")]
19    #[serde(default, skip_serializing_if = "Option::is_none")]
20    pub enter_utilization_percent: Option<f64>,
21    /// The duration in seconds the computer system is above the ExitUtilizationPercent value before the idle power save is stopped.
22    #[serde(rename = "ExitDwellTimeSeconds")]
23    #[serde(default, skip_serializing_if = "Option::is_none")]
24    pub exit_dwell_time_seconds: Option<i64>,
25    /// The percentage of utilization that the computer system shall be higher than to exit idle power save.
26    #[serde(rename = "ExitUtilizationPercent")]
27    #[serde(default, skip_serializing_if = "Option::is_none")]
28    pub exit_utilization_percent: Option<f64>,
29}
30
31impl crate::Metadata<'static> for IdlePowerSaver {
32    const JSON_SCHEMA: &'static str = "ComputerSystem.v1_20_1.json";
33}