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 {
    #[serde(rename = "ActiveSoftwareImage")]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub active_software_image: Option<models::odata_v4::IdRef>,
    /// An array of links to ComponentIntegrity resources for which the trusted component is responsible.
    #[serde(rename = "ComponentIntegrity")]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub component_integrity: Option<Vec<models::odata_v4::IdRef>>,
    #[serde(rename = "ComponentIntegrity@odata.count")]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub component_integrity_odata_count: Option<models::odata_v4::Count>,
    /// An array of links to resources that the target component protects.
    #[serde(rename = "ComponentsProtected")]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub components_protected: Option<Vec<models::odata_v4::IdRef>>,
    #[serde(rename = "ComponentsProtected@odata.count")]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub components_protected_odata_count: Option<models::odata_v4::Count>,
    #[serde(rename = "IntegratedInto")]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub integrated_into: Option<models::odata_v4::IdRef>,
    #[serde(rename = "Oem")]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub oem: Option<models::resource::Oem>,
    /// The images that are associated with this trusted component.
    #[serde(rename = "SoftwareImages")]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub software_images: Option<Vec<models::odata_v4::IdRef>>,
    #[serde(rename = "SoftwareImages@odata.count")]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub software_images_odata_count: Option<models::odata_v4::Count>,
}

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