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 output power rail for a power supply.
#[derive(Clone, Debug, serde::Deserialize, serde::Serialize)]
#[derive(derivative::Derivative)]
#[derivative(Default)]
pub struct OutputRail {
    /// The nominal voltage of this output power rail.
    #[serde(rename = "NominalVoltage")]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub nominal_voltage: Option<f64>,
    #[serde(rename = "PhysicalContext")]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub physical_context: Option<models::physical_context::PhysicalContext>,
}

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