redfish_codegen/models/license/v1_1_1/
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    /// An array of links to the devices authorized by the license.
11    #[serde(rename = "AuthorizedDevices")]
12    #[serde(default, skip_serializing_if = "Option::is_none")]
13    pub authorized_devices: Option<Vec<models::odata_v4::IdRef>>,
14    #[serde(rename = "AuthorizedDevices@odata.count")]
15    #[serde(default, skip_serializing_if = "Option::is_none")]
16    pub authorized_devices_odata_count: Option<models::odata_v4::Count>,
17    #[serde(rename = "Oem")]
18    #[serde(default, skip_serializing_if = "Option::is_none")]
19    pub oem: Option<models::resource::Oem>,
20    /// An array of links to the managers where the license is installed.
21    #[serde(rename = "TargetServices")]
22    #[serde(default, skip_serializing_if = "Option::is_none")]
23    pub target_services: Option<Vec<models::odata_v4::IdRef>>,
24    #[serde(rename = "TargetServices@odata.count")]
25    #[serde(default, skip_serializing_if = "Option::is_none")]
26    pub target_services_odata_count: Option<models::odata_v4::Count>,
27}
28
29impl crate::Metadata<'static> for Links {
30    const JSON_SCHEMA: &'static str = "License.v1_1_1.json";
31}