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 Links {
    #[serde(rename = "CXLLogicalDevice")]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub cxl_logical_device: Option<models::odata_v4::IdRef>,
    /// An array of links to the drives that this PCIe function produces.
    #[serde(rename = "Drives")]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub drives: Option<Vec<models::odata_v4::IdRef>>,
    #[serde(rename = "Drives@odata.count")]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub drives_odata_count: Option<models::odata_v4::Count>,
    /// An array of links to the Ethernet interfaces that this PCIe function produces.
    #[serde(rename = "EthernetInterfaces")]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub ethernet_interfaces: Option<Vec<models::odata_v4::IdRef>>,
    #[serde(rename = "EthernetInterfaces@odata.count")]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub ethernet_interfaces_odata_count: Option<models::odata_v4::Count>,
    /// An array of links to the memory domains that the PCIe function produces.
    #[serde(rename = "MemoryDomains")]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub memory_domains: Option<Vec<models::odata_v4::IdRef>>,
    #[serde(rename = "MemoryDomains@odata.count")]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub memory_domains_odata_count: Option<models::odata_v4::Count>,
    /// An array of links to the network device functions that the PCIe function produces.
    #[serde(rename = "NetworkDeviceFunctions")]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub network_device_functions: Option<Vec<models::odata_v4::IdRef>>,
    #[serde(rename = "NetworkDeviceFunctions@odata.count")]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub network_device_functions_odata_count: Option<models::odata_v4::Count>,
    #[serde(rename = "Oem")]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub oem: Option<models::resource::Oem>,
    #[serde(rename = "PCIeDevice")]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub pcie_device: Option<models::odata_v4::IdRef>,
    #[serde(rename = "Processor")]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub processor: Option<models::odata_v4::IdRef>,
    /// An array of links to the storage controllers that this PCIe function produces.
    #[serde(rename = "StorageControllers")]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub storage_controllers: Option<Vec<models::storage::StorageController>>,
    #[serde(rename = "StorageControllers@odata.count")]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub storage_controllers_odata_count: Option<models::odata_v4::Count>,
}

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