redfish-codegen 0.3.1

An unopinionated translation of the Redfish specification into Rust.
Documentation
// Generated by redfish-codegen. Do not modify.


/// The heater metrics summary for the subsystem.
#[derive(Clone, Debug, serde::Deserialize, serde::Serialize)]
#[derive(derivative::Derivative)]
#[derivative(Default)]
pub struct HeaterSummary {
    /// The total number of seconds all the heaters in the thermal subsystem were active while the respective devices they heat were powered off.
    #[serde(rename = "TotalPrePowerOnHeatingTimeSeconds")]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub total_pre_power_on_heating_time_seconds: Option<i64>,
    /// The total number of seconds all the heaters in the thermal subsystem were active while the respective devices they heat were powered on.
    #[serde(rename = "TotalRuntimeHeatingTimeSeconds")]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub total_runtime_heating_time_seconds: Option<i64>,
}

impl crate::Metadata<'static> for HeaterSummary {
    const JSON_SCHEMA: &'static str = "ThermalMetrics.v1_1_0.json";
}