redfish_codegen/models/secure_boot/v1_1_0/
secure_boot.rs

1// Generated by redfish-codegen. Do not modify.
2
3use crate::models;
4
5/// The SecureBoot schema contains UEFI Secure Boot information and represents properties for managing the UEFI Secure Boot functionality of a system.
6#[derive(Clone, Debug, serde::Deserialize, serde::Serialize)]
7#[derive(derivative::Derivative)]
8#[derivative(Default)]
9pub struct SecureBoot {
10    #[serde(rename = "@odata.context")]
11    #[serde(skip_deserializing)]
12    #[serde(default, skip_serializing_if = "Option::is_none")]
13    pub odata_context: Option<models::odata_v4::Context>,
14    #[serde(rename = "@odata.etag")]
15    #[serde(skip_deserializing)]
16    #[serde(default, skip_serializing_if = "Option::is_none")]
17    pub odata_etag: Option<models::odata_v4::Etag>,
18    #[serde(rename = "@odata.id")]
19    #[serde(skip_deserializing)]
20    pub odata_id: models::odata_v4::Id,
21    #[serde(rename = "@odata.type")]
22    #[serde(skip_deserializing)]
23    #[derivative(Default(value = "models::odata_v4::Type(\"#SecureBoot.v1_1_0.SecureBoot\".to_string())"))]
24    pub odata_type: models::odata_v4::Type,
25    #[serde(rename = "Actions")]
26    #[serde(default, skip_serializing_if = "Option::is_none")]
27    pub actions: Option<models::secure_boot::v1_1_0::Actions>,
28    #[serde(rename = "Description")]
29    #[serde(default, skip_serializing_if = "Option::is_none")]
30    pub description: Option<models::resource::Description>,
31    #[serde(rename = "Id")]
32    #[serde(skip_deserializing)]
33    pub id: models::resource::Id,
34    #[serde(rename = "Name")]
35    #[serde(skip_deserializing)]
36    pub name: models::resource::Name,
37    #[serde(rename = "Oem")]
38    #[serde(default, skip_serializing_if = "Option::is_none")]
39    pub oem: Option<models::resource::Oem>,
40    #[serde(rename = "SecureBootCurrentBoot")]
41    #[serde(default, skip_serializing_if = "Option::is_none")]
42    pub secure_boot_current_boot: Option<models::secure_boot::v1_1_0::SecureBootCurrentBootType>,
43    #[serde(rename = "SecureBootDatabases")]
44    #[serde(default, skip_serializing_if = "Option::is_none")]
45    pub secure_boot_databases: Option<models::odata_v4::IdRef>,
46    /// An indication of whether UEFI Secure Boot is enabled.
47    #[serde(rename = "SecureBootEnable")]
48    #[serde(default, skip_serializing_if = "Option::is_none")]
49    pub secure_boot_enable: Option<bool>,
50    #[serde(rename = "SecureBootMode")]
51    #[serde(default, skip_serializing_if = "Option::is_none")]
52    pub secure_boot_mode: Option<models::secure_boot::v1_1_0::SecureBootModeType>,
53}
54
55impl crate::Metadata<'static> for SecureBoot {
56    const JSON_SCHEMA: &'static str = "SecureBoot.v1_1_0.json";
57}