redfish-codegen 0.3.1

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

use crate::models;

/// This type describes an input range for a power supply.
#[derive(Clone, Debug, serde::Deserialize, serde::Serialize)]
#[derive(derivative::Derivative)]
#[derivative(Default)]
pub struct InputRange {
    /// The maximum capacity of this power supply when operating in this input range.
    #[serde(rename = "CapacityWatts")]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub capacity_watts: Option<f64>,
    #[serde(rename = "NominalVoltageType")]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub nominal_voltage_type: Option<models::circuit::NominalVoltageType>,
}

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