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 chassis to which this storage subsystem is attached.
    #[serde(rename = "Enclosures")]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub enclosures: Option<Vec<models::odata_v4::IdRef>>,
    #[serde(rename = "Enclosures@odata.count")]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub enclosures_odata_count: Option<models::odata_v4::Count>,
    /// The storage systems that host this storage subsystem.
    #[serde(rename = "HostingStorageSystems")]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub hosting_storage_systems: Option<Vec<models::odata_v4::IdRef>>,
    #[serde(rename = "HostingStorageSystems@odata.count")]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub hosting_storage_systems_odata_count: Option<models::odata_v4::Count>,
    /// An array of links to the discovery subsystems that discovered this subsystem in an NVMe-oF environment.
    #[serde(rename = "NVMeoFDiscoverySubysystems")]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub nvme_of_discovery_subysystems: Option<Vec<models::odata_v4::IdRef>>,
    #[serde(rename = "NVMeoFDiscoverySubysystems@odata.count")]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub nvme_of_discovery_subysystems_odata_count: Option<models::odata_v4::Count>,
    #[serde(rename = "Oem")]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub oem: Option<models::resource::Oem>,
    #[serde(rename = "SimpleStorage")]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub simple_storage: Option<models::odata_v4::IdRef>,
    /// An array of links to the storage services that connect to this storage subsystem.
    #[serde(rename = "StorageServices")]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub storage_services: Option<Vec<models::odata_v4::IdRef>>,
    #[serde(rename = "StorageServices@odata.count")]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub storage_services_odata_count: Option<models::odata_v4::Count>,
}

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