redfish_codegen/models/task/v1_7_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 URIs referencing the resources created as the result of the operation that produced this task.
11    #[serde(rename = "CreatedResources")]
12    #[serde(default, skip_serializing_if = "Option::is_none")]
13    pub created_resources: Option<Vec<models::odata_v4::IdRef>>,
14    #[serde(rename = "CreatedResources@odata.count")]
15    #[serde(default, skip_serializing_if = "Option::is_none")]
16    pub created_resources_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}
21
22impl crate::Metadata<'static> for Links {
23    const JSON_SCHEMA: &'static str = "Task.v1_7_1.json";
24}