redfish_codegen/models/ethernet_interface/v1_10_0/
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 Links {
10    /// The links to the Ethernet interfaces that are affiliated with this interface, such as a VLAN or a team that uses this interface.
11    #[serde(rename = "AffiliatedInterfaces")]
12    #[serde(default, skip_serializing_if = "Option::is_none")]
13    pub affiliated_interfaces: Option<Vec<models::odata_v4::IdRef>>,
14    #[serde(rename = "AffiliatedInterfaces@odata.count")]
15    #[serde(default, skip_serializing_if = "Option::is_none")]
16    pub affiliated_interfaces_odata_count: Option<models::odata_v4::Count>,
17    #[serde(rename = "Chassis")]
18    #[serde(default, skip_serializing_if = "Option::is_none")]
19    pub chassis: Option<models::odata_v4::IdRef>,
20    /// An array of links to the endpoints that connect to this Ethernet interface.
21    #[serde(rename = "Endpoints")]
22    #[serde(default, skip_serializing_if = "Option::is_none")]
23    pub endpoints: Option<Vec<models::odata_v4::IdRef>>,
24    #[serde(rename = "Endpoints@odata.count")]
25    #[serde(default, skip_serializing_if = "Option::is_none")]
26    pub endpoints_odata_count: Option<models::odata_v4::Count>,
27    #[serde(rename = "HostInterface")]
28    #[serde(default, skip_serializing_if = "Option::is_none")]
29    pub host_interface: Option<models::odata_v4::IdRef>,
30    #[serde(rename = "NetworkDeviceFunction")]
31    #[serde(default, skip_serializing_if = "Option::is_none")]
32    pub network_device_function: Option<models::odata_v4::IdRef>,
33    /// The link to the network device functions that comprise this Ethernet interface.
34    #[serde(rename = "NetworkDeviceFunctions")]
35    #[serde(default, skip_serializing_if = "Option::is_none")]
36    pub network_device_functions: Option<Vec<models::odata_v4::IdRef>>,
37    #[serde(rename = "NetworkDeviceFunctions@odata.count")]
38    #[serde(default, skip_serializing_if = "Option::is_none")]
39    pub network_device_functions_odata_count: Option<models::odata_v4::Count>,
40    #[serde(rename = "Oem")]
41    #[serde(default, skip_serializing_if = "Option::is_none")]
42    pub oem: Option<models::resource::Oem>,
43    /// The links to the ports providing this Ethernet interface.
44    #[serde(rename = "Ports")]
45    #[serde(default, skip_serializing_if = "Option::is_none")]
46    pub ports: Option<Vec<models::odata_v4::IdRef>>,
47    #[serde(rename = "Ports@odata.count")]
48    #[serde(default, skip_serializing_if = "Option::is_none")]
49    pub ports_odata_count: Option<models::odata_v4::Count>,
50    /// The links to the Ethernet interfaces that comprise this Ethernet interface.
51    #[serde(rename = "RelatedInterfaces")]
52    #[serde(default, skip_serializing_if = "Option::is_none")]
53    pub related_interfaces: Option<Vec<models::odata_v4::IdRef>>,
54    #[serde(rename = "RelatedInterfaces@odata.count")]
55    #[serde(default, skip_serializing_if = "Option::is_none")]
56    pub related_interfaces_odata_count: Option<models::odata_v4::Count>,
57}
58
59impl crate::Metadata<'static> for Links {
60    const JSON_SCHEMA: &'static str = "EthernetInterface.v1_10_0.json";
61}