redfish_codegen/models/processor/v1_18_0/
processor_interface.rs

1// Generated by redfish-codegen. Do not modify.
2
3use crate::models;
4
5/// This type describes an interface between the system, or external connection, and the processor.
6#[derive(Clone, Debug, serde::Deserialize, serde::Serialize)]
7#[derive(derivative::Derivative)]
8#[derivative(Default)]
9pub struct ProcessorInterface {
10    #[serde(rename = "Ethernet")]
11    #[serde(default, skip_serializing_if = "Option::is_none")]
12    pub ethernet: Option<models::processor::v1_18_0::EthernetInterface>,
13    #[serde(rename = "InterfaceType")]
14    #[serde(default, skip_serializing_if = "Option::is_none")]
15    pub interface_type: Option<models::processor::v1_18_0::SystemInterfaceType>,
16    #[serde(rename = "PCIe")]
17    #[serde(default, skip_serializing_if = "Option::is_none")]
18    pub pcie: Option<models::pcie_device::PCIeInterface>,
19}
20
21impl crate::Metadata<'static> for ProcessorInterface {
22    const JSON_SCHEMA: &'static str = "Processor.v1_18_0.json";
23}