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 defines an Ethernet interface.
#[derive(Clone, Debug, serde::Deserialize, serde::Serialize)]
#[derive(derivative::Derivative)]
#[derivative(Default)]
pub struct EthernetInterface {
    /// The number of lanes supported by this interface.
    #[serde(rename = "MaxLanes")]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub max_lanes: Option<i64>,
    /// The maximum speed supported by this interface.
    #[serde(rename = "MaxSpeedMbps")]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub max_speed_mbps: Option<i64>,
    #[serde(rename = "Oem")]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub oem: Option<models::resource::Oem>,
}

impl crate::Metadata<'static> for EthernetInterface {
    const JSON_SCHEMA: &'static str = "Processor.v1_17_0.json";
}