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 interface between the system, or external connection, and the processor.
#[derive(Clone, Debug, serde::Deserialize, serde::Serialize)]
#[derive(derivative::Derivative)]
#[derivative(Default)]
pub struct ProcessorInterface {
    #[serde(rename = "Ethernet")]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub ethernet: Option<models::processor::v1_17_0::EthernetInterface>,
    #[serde(rename = "InterfaceType")]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub interface_type: Option<models::processor::v1_17_0::SystemInterfaceType>,
    #[serde(rename = "PCIe")]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub pcie: Option<models::pcie_device::PCIeInterface>,
}

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