redfish_codegen/models/power_subsystem/v1_1_0/
power_allocation.rs

1// Generated by redfish-codegen. Do not modify.
2
3
4/// Power allocation for a subsystem.
5#[derive(Clone, Debug, serde::Deserialize, serde::Serialize)]
6#[derive(derivative::Derivative)]
7#[derivative(Default)]
8pub struct PowerAllocation {
9    /// The total amount of power that has been allocated or budgeted to this subsystem.
10    #[serde(rename = "AllocatedWatts")]
11    #[serde(default, skip_serializing_if = "Option::is_none")]
12    pub allocated_watts: Option<f64>,
13    /// The potential power, in watts, that the subsystem requests, which might be higher than the current level being consumed because the requested power includes a budget that the subsystem wants for future use.
14    #[serde(rename = "RequestedWatts")]
15    #[serde(default, skip_serializing_if = "Option::is_none")]
16    pub requested_watts: Option<f64>,
17}
18
19impl crate::Metadata<'static> for PowerAllocation {
20    const JSON_SCHEMA: &'static str = "PowerSubsystem.v1_1_0.json";
21}