redfish_codegen/models/power_subsystem/v1_1_0/
power_allocation.rs1#[derive(Clone, Debug, serde::Deserialize, serde::Serialize)]
6#[derive(derivative::Derivative)]
7#[derivative(Default)]
8pub struct PowerAllocation {
9 #[serde(rename = "AllocatedWatts")]
11 #[serde(default, skip_serializing_if = "Option::is_none")]
12 pub allocated_watts: Option<f64>,
13 #[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}