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;

/// Properties of the link for which this port is configured.
#[derive(Clone, Debug, serde::Deserialize, serde::Serialize)]
#[derive(derivative::Derivative)]
#[derivative(Default)]
pub struct LinkConfiguration {
    /// An indication of whether the port is capable of autonegotiating speed.
    #[serde(rename = "AutoSpeedNegotiationCapable")]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub auto_speed_negotiation_capable: Option<bool>,
    /// Controls whether this port is configured to enable autonegotiating speed.
    #[serde(rename = "AutoSpeedNegotiationEnabled")]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub auto_speed_negotiation_enabled: Option<bool>,
    /// The set of link speed capabilities of this port.
    #[serde(rename = "CapableLinkSpeedGbps")]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub capable_link_speed_gbps: Option<Vec<f64>>,
    /// The set of link speed and width pairs this port is configured to use for autonegotiation.
    #[serde(rename = "ConfiguredNetworkLinks")]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub configured_network_links: Option<Vec<models::port::v1_8_0::ConfiguredNetworkLink>>,
}

impl crate::Metadata<'static> for LinkConfiguration {
    const JSON_SCHEMA: &'static str = "Port.v1_8_0.json";
}