redfish_codegen/models/power/v1_7_1/
power_limit.rs

1// Generated by redfish-codegen. Do not modify.
2
3use crate::models;
4
5/// The power limit status and configuration information for the chassis.
6#[derive(Clone, Debug, serde::Deserialize, serde::Serialize)]
7#[derive(derivative::Derivative)]
8#[derivative(Default)]
9pub struct PowerLimit {
10    /// The time required for the limiting process to reduce power consumption to below the limit.
11    #[serde(rename = "CorrectionInMs")]
12    #[serde(default, skip_serializing_if = "Option::is_none")]
13    pub correction_in_ms: Option<i64>,
14    #[serde(rename = "LimitException")]
15    #[serde(default, skip_serializing_if = "Option::is_none")]
16    pub limit_exception: Option<models::power::v1_7_1::PowerLimitException>,
17    /// The power limit, in watts.  If `null`, power capping is disabled.
18    #[serde(rename = "LimitInWatts")]
19    #[serde(default, skip_serializing_if = "Option::is_none")]
20    pub limit_in_watts: Option<f64>,
21}
22
23impl crate::Metadata<'static> for PowerLimit {
24    const JSON_SCHEMA: &'static str = "Power.v1_7_1.json";
25}