redfish-codegen 0.3.1

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


/// This type describes an efficiency rating for a power supply.
#[derive(Clone, Debug, serde::Deserialize, serde::Serialize)]
#[derive(derivative::Derivative)]
#[derivative(Default)]
pub struct EfficiencyRating {
    /// The rated efficiency of this power supply at the specified load.
    #[serde(rename = "EfficiencyPercent")]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub efficiency_percent: Option<f64>,
    /// The electrical load for this rating.
    #[serde(rename = "LoadPercent")]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub load_percent: Option<f64>,
}

impl crate::Metadata<'static> for EfficiencyRating {
    const JSON_SCHEMA: &'static str = "PowerSupply.v1_5_1.json";
}