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 {
    #[serde(rename = "InputType")]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub input_type: Option<models::power::v1_7_1::InputType>,
    /// The maximum line input frequency at which this power supply input range is effective.
    #[serde(rename = "MaximumFrequencyHz")]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub maximum_frequency_hz: Option<f64>,
    /// The maximum line input voltage at which this power supply input range is effective.
    #[serde(rename = "MaximumVoltage")]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub maximum_voltage: Option<f64>,
    /// The minimum line input frequency at which this power supply input range is effective.
    #[serde(rename = "MinimumFrequencyHz")]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub minimum_frequency_hz: Option<f64>,
    /// The minimum line input voltage at which this power supply input range is effective.
    #[serde(rename = "MinimumVoltage")]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub minimum_voltage: Option<f64>,
    #[serde(rename = "Oem")]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub oem: Option<models::resource::Oem>,
    /// The maximum capacity of this power supply when operating in this input range.
    #[serde(rename = "OutputWattage")]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub output_wattage: Option<f64>,
}

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