redfish-codegen 0.3.1

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


/// The transceiver metrics.
#[derive(Clone, Debug, serde::Deserialize, serde::Serialize)]
#[derive(derivative::Derivative)]
#[derivative(Default)]
pub struct Transceiver {
    /// The RX input power value of a small form-factor pluggable (SFP) transceiver.
    #[serde(rename = "RXInputPowerMilliWatts")]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub rx_input_power_milli_watts: Option<f64>,
    /// The supply voltage of a small form-factor pluggable (SFP) transceiver.
    #[serde(rename = "SupplyVoltage")]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub supply_voltage: Option<f64>,
    /// The TX bias current value of a small form-factor pluggable (SFP) transceiver.
    #[serde(rename = "TXBiasCurrentMilliAmps")]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub tx_bias_current_milli_amps: Option<f64>,
    /// The TX output power value of a small form-factor pluggable (SFP) transceiver.
    #[serde(rename = "TXOutputPowerMilliWatts")]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub tx_output_power_milli_watts: Option<f64>,
}

impl crate::Metadata<'static> for Transceiver {
    const JSON_SCHEMA: &'static str = "PortMetrics.v1_4_0.json";
}