redfish_codegen/models/computer_system/v1_20_1/
trusted_modules.rs

1// Generated by redfish-codegen. Do not modify.
2
3use crate::models;
4
5/// The Trusted Module installed in the system.
6#[derive(Clone, Debug, serde::Deserialize, serde::Serialize)]
7#[derive(derivative::Derivative)]
8#[derivative(Default)]
9pub struct TrustedModules {
10    /// The firmware version of this Trusted Module.
11    #[serde(rename = "FirmwareVersion")]
12    #[serde(default, skip_serializing_if = "Option::is_none")]
13    pub firmware_version: Option<String>,
14    /// The second firmware version of this Trusted Module, if applicable.
15    #[serde(rename = "FirmwareVersion2")]
16    #[serde(default, skip_serializing_if = "Option::is_none")]
17    pub firmware_version_2: Option<String>,
18    #[serde(rename = "InterfaceType")]
19    #[serde(default, skip_serializing_if = "Option::is_none")]
20    pub interface_type: Option<models::computer_system::v1_20_1::InterfaceType>,
21    #[serde(rename = "InterfaceTypeSelection")]
22    #[serde(default, skip_serializing_if = "Option::is_none")]
23    pub interface_type_selection: Option<models::computer_system::v1_20_1::InterfaceTypeSelection>,
24    #[serde(rename = "Oem")]
25    #[serde(default, skip_serializing_if = "Option::is_none")]
26    pub oem: Option<models::resource::Oem>,
27    #[serde(rename = "Status")]
28    #[serde(default, skip_serializing_if = "Option::is_none")]
29    pub status: Option<models::resource::Status>,
30}
31
32impl crate::Metadata<'static> for TrustedModules {
33    const JSON_SCHEMA: &'static str = "ComputerSystem.v1_20_1.json";
34}