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 ControllerLinks {
    /// An array of links to the network device functions associated with this network controller.
    #[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>,
    /// An array of links to the network ports associated with this network controller.
    #[serde(rename = "NetworkPorts")]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub network_ports: Option<Vec<models::odata_v4::IdRef>>,
    #[serde(rename = "NetworkPorts@odata.count")]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub network_ports_odata_count: Option<models::odata_v4::Count>,
    #[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 associated with this network controller.
    #[serde(rename = "PCIeDevices")]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub pcie_devices: Option<Vec<models::odata_v4::IdRef>>,
    #[serde(rename = "PCIeDevices@odata.count")]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub pcie_devices_odata_count: Option<models::odata_v4::Count>,
    /// An array of links to the ports associated with this network controller.
    #[serde(rename = "Ports")]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub ports: Option<Vec<models::odata_v4::IdRef>>,
    #[serde(rename = "Ports@odata.count")]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub ports_odata_count: Option<models::odata_v4::Count>,
}

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