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 {
    /// An array of links to endpoints associated with this network device function.
    #[serde(rename = "Endpoints")]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub endpoints: Option<Vec<models::odata_v4::IdRef>>,
    #[serde(rename = "Endpoints@odata.count")]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub endpoints_odata_count: Option<models::odata_v4::Count>,
    #[serde(rename = "EthernetInterface")]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub ethernet_interface: Option<models::odata_v4::IdRef>,
    /// The links to Ethernet interfaces that were created when one of the network device function VLANs is represented as a virtual NIC for the purpose of showing the IP address associated with that VLAN.
    #[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>,
    #[serde(rename = "Oem")]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub oem: Option<models::resource::Oem>,
    /// The processors that perform offload computation for this network function, such as with a SmartNIC.
    #[serde(rename = "OffloadProcessors")]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub offload_processors: Option<Vec<models::odata_v4::IdRef>>,
    #[serde(rename = "OffloadProcessors@odata.count")]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub offload_processors_odata_count: Option<models::odata_v4::Count>,
    #[serde(rename = "OffloadSystem")]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub offload_system: Option<models::odata_v4::IdRef>,
    #[serde(rename = "PCIeFunction")]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub pcie_function: Option<models::odata_v4::IdRef>,
    #[serde(rename = "PhysicalNetworkPortAssignment")]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub physical_network_port_assignment: Option<models::odata_v4::IdRef>,
    #[serde(rename = "PhysicalPortAssignment")]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub physical_port_assignment: Option<models::odata_v4::IdRef>,
}

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