redfish_codegen/models/power/v1_7_1/
input_range.rs

1// Generated by redfish-codegen. Do not modify.
2
3use crate::models;
4
5/// This type describes an input range for a power supply.
6#[derive(Clone, Debug, serde::Deserialize, serde::Serialize)]
7#[derive(derivative::Derivative)]
8#[derivative(Default)]
9pub struct InputRange {
10    #[serde(rename = "InputType")]
11    #[serde(default, skip_serializing_if = "Option::is_none")]
12    pub input_type: Option<models::power::v1_7_1::InputType>,
13    /// The maximum line input frequency at which this power supply input range is effective.
14    #[serde(rename = "MaximumFrequencyHz")]
15    #[serde(default, skip_serializing_if = "Option::is_none")]
16    pub maximum_frequency_hz: Option<f64>,
17    /// The maximum line input voltage at which this power supply input range is effective.
18    #[serde(rename = "MaximumVoltage")]
19    #[serde(default, skip_serializing_if = "Option::is_none")]
20    pub maximum_voltage: Option<f64>,
21    /// The minimum line input frequency at which this power supply input range is effective.
22    #[serde(rename = "MinimumFrequencyHz")]
23    #[serde(default, skip_serializing_if = "Option::is_none")]
24    pub minimum_frequency_hz: Option<f64>,
25    /// The minimum line input voltage at which this power supply input range is effective.
26    #[serde(rename = "MinimumVoltage")]
27    #[serde(default, skip_serializing_if = "Option::is_none")]
28    pub minimum_voltage: Option<f64>,
29    #[serde(rename = "Oem")]
30    #[serde(default, skip_serializing_if = "Option::is_none")]
31    pub oem: Option<models::resource::Oem>,
32    /// The maximum capacity of this power supply when operating in this input range.
33    #[serde(rename = "OutputWattage")]
34    #[serde(default, skip_serializing_if = "Option::is_none")]
35    pub output_wattage: Option<f64>,
36}
37
38impl crate::Metadata<'static> for InputRange {
39    const JSON_SCHEMA: &'static str = "Power.v1_7_1.json";
40}