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;

/// The links to other Resources that are related to this Resource.
#[derive(Clone, Debug, serde::Deserialize, serde::Serialize)]
#[derive(derivative::Derivative)]
#[derivative(Default)]
pub struct PCIeLinks {
    #[serde(rename = "Oem")]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub oem: Option<models::resource::Oem>,
    /// An array of links to the PCIe devices contained in this slot.
    #[serde(rename = "PCIeDevice")]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub pcie_device: Option<Vec<models::odata_v4::IdRef>>,
    #[serde(rename = "PCIeDevice@odata.count")]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub pcie_device_odata_count: Option<models::odata_v4::Count>,
    /// An array of links to the processors that are directly connected or directly bridged to this PCIe slot.
    #[serde(rename = "Processors")]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub processors: Option<Vec<models::odata_v4::IdRef>>,
    #[serde(rename = "Processors@odata.count")]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub processors_odata_count: Option<models::odata_v4::Count>,
}

impl crate::Metadata<'static> for PCIeLinks {
    const JSON_SCHEMA: &'static str = "PCIeSlots.v1_5_0.json";
}