redfish_codegen/models/bios/v1_2_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    #[serde(rename = "ActiveSoftwareImage")]
11    #[serde(default, skip_serializing_if = "Option::is_none")]
12    pub active_software_image: Option<models::odata_v4::IdRef>,
13    #[serde(rename = "Oem")]
14    #[serde(default, skip_serializing_if = "Option::is_none")]
15    pub oem: Option<models::resource::Oem>,
16    /// The images that are associated with this BIOS.
17    #[serde(rename = "SoftwareImages")]
18    #[serde(default, skip_serializing_if = "Option::is_none")]
19    pub software_images: Option<Vec<models::odata_v4::IdRef>>,
20    #[serde(rename = "SoftwareImages@odata.count")]
21    #[serde(default, skip_serializing_if = "Option::is_none")]
22    pub software_images_odata_count: Option<models::odata_v4::Count>,
23}
24
25impl crate::Metadata<'static> for Links {
26    const JSON_SCHEMA: &'static str = "Bios.v1_2_1.json";
27}