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 the initiator endpoint groups that are associated with this connection.
    #[serde(rename = "InitiatorEndpointGroups")]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub initiator_endpoint_groups: Option<Vec<models::odata_v4::IdRef>>,
    #[serde(rename = "InitiatorEndpointGroups@odata.count")]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub initiator_endpoint_groups_odata_count: Option<models::odata_v4::Count>,
    /// An array of links to the initiator endpoints that are associated with this connection.
    #[serde(rename = "InitiatorEndpoints")]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub initiator_endpoints: Option<Vec<models::odata_v4::IdRef>>,
    #[serde(rename = "InitiatorEndpoints@odata.count")]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub initiator_endpoints_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 target endpoint groups that are associated with this connection.
    #[serde(rename = "TargetEndpointGroups")]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub target_endpoint_groups: Option<Vec<models::odata_v4::IdRef>>,
    #[serde(rename = "TargetEndpointGroups@odata.count")]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub target_endpoint_groups_odata_count: Option<models::odata_v4::Count>,
    /// An array of links to the target endpoints that are associated with this connection.
    #[serde(rename = "TargetEndpoints")]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub target_endpoints: Option<Vec<models::odata_v4::IdRef>>,
    #[serde(rename = "TargetEndpoints@odata.count")]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub target_endpoints_odata_count: Option<models::odata_v4::Count>,
}

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