redfish_codegen/models/network_adapter/v1_9_0/
controller_links.rs

1// Generated by redfish-codegen. Do not modify.
2
3use crate::models;
4
5/// The links to other resources that are related to this resource.
6#[derive(Clone, Debug, serde::Deserialize, serde::Serialize)]
7#[derive(derivative::Derivative)]
8#[derivative(Default)]
9pub struct ControllerLinks {
10    /// An array of links to the network device functions associated with this network controller.
11    #[serde(rename = "NetworkDeviceFunctions")]
12    #[serde(default, skip_serializing_if = "Option::is_none")]
13    pub network_device_functions: Option<Vec<models::odata_v4::IdRef>>,
14    #[serde(rename = "NetworkDeviceFunctions@odata.count")]
15    #[serde(default, skip_serializing_if = "Option::is_none")]
16    pub network_device_functions_odata_count: Option<models::odata_v4::Count>,
17    /// An array of links to the network ports associated with this network controller.
18    #[serde(rename = "NetworkPorts")]
19    #[serde(default, skip_serializing_if = "Option::is_none")]
20    pub network_ports: Option<Vec<models::odata_v4::IdRef>>,
21    #[serde(rename = "NetworkPorts@odata.count")]
22    #[serde(default, skip_serializing_if = "Option::is_none")]
23    pub network_ports_odata_count: Option<models::odata_v4::Count>,
24    #[serde(rename = "Oem")]
25    #[serde(default, skip_serializing_if = "Option::is_none")]
26    pub oem: Option<models::resource::Oem>,
27    /// An array of links to the PCIe devices associated with this network controller.
28    #[serde(rename = "PCIeDevices")]
29    #[serde(default, skip_serializing_if = "Option::is_none")]
30    pub pcie_devices: Option<Vec<models::odata_v4::IdRef>>,
31    #[serde(rename = "PCIeDevices@odata.count")]
32    #[serde(default, skip_serializing_if = "Option::is_none")]
33    pub pcie_devices_odata_count: Option<models::odata_v4::Count>,
34    /// An array of links to the ports associated with this network controller.
35    #[serde(rename = "Ports")]
36    #[serde(default, skip_serializing_if = "Option::is_none")]
37    pub ports: Option<Vec<models::odata_v4::IdRef>>,
38    #[serde(rename = "Ports@odata.count")]
39    #[serde(default, skip_serializing_if = "Option::is_none")]
40    pub ports_odata_count: Option<models::odata_v4::Count>,
41}
42
43impl crate::Metadata<'static> for ControllerLinks {
44    const JSON_SCHEMA: &'static str = "NetworkAdapter.v1_9_0.json";
45}