redfish_codegen/models/boot_option/v1_0_4/
boot_option.rs

1// Generated by redfish-codegen. Do not modify.
2
3use crate::models;
4
5/// The BootOption schema reports information about a single boot option in a system.  It represents the properties of a bootable device available in the system.
6#[derive(Clone, Debug, serde::Deserialize, serde::Serialize)]
7#[derive(derivative::Derivative)]
8#[derivative(Default)]
9pub struct BootOption {
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(\"#BootOption.v1_0_4.BootOption\".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::boot_option::v1_0_4::Actions>,
28    #[serde(rename = "Alias")]
29    #[serde(default, skip_serializing_if = "Option::is_none")]
30    pub alias: Option<models::computer_system::BootSource>,
31    /// An indication of whether the boot option is enabled.  If `true`, it is enabled.  If `false`, the boot option that the boot order array on the computer system contains is skipped.  In the UEFI context, this property shall influence the load option active flag for the boot option.
32    #[serde(rename = "BootOptionEnabled")]
33    #[serde(default, skip_serializing_if = "Option::is_none")]
34    pub boot_option_enabled: Option<bool>,
35    /// The unique boot option.
36    #[serde(rename = "BootOptionReference")]
37    pub boot_option_reference: String,
38    #[serde(rename = "Description")]
39    #[serde(default, skip_serializing_if = "Option::is_none")]
40    pub description: Option<models::resource::Description>,
41    /// The user-readable display name of the boot option that appears in the boot order list in the user interface.
42    #[serde(rename = "DisplayName")]
43    #[serde(default, skip_serializing_if = "Option::is_none")]
44    pub display_name: Option<String>,
45    #[serde(rename = "Id")]
46    #[serde(skip_deserializing)]
47    pub id: models::resource::Id,
48    #[serde(rename = "Name")]
49    #[serde(skip_deserializing)]
50    pub name: models::resource::Name,
51    #[serde(rename = "Oem")]
52    #[serde(default, skip_serializing_if = "Option::is_none")]
53    pub oem: Option<models::resource::Oem>,
54    /// An array of links to resources or objects associated with this boot option.
55    #[serde(rename = "RelatedItem")]
56    #[serde(default, skip_serializing_if = "Option::is_none")]
57    pub related_item: Option<Vec<models::odata_v4::IdRef>>,
58    #[serde(rename = "RelatedItem@odata.count")]
59    #[serde(default, skip_serializing_if = "Option::is_none")]
60    pub related_item_odata_count: Option<models::odata_v4::Count>,
61    /// The UEFI device path to access this UEFI boot option.
62    #[serde(rename = "UefiDevicePath")]
63    #[serde(default, skip_serializing_if = "Option::is_none")]
64    pub uefi_device_path: Option<String>,
65}
66
67impl crate::Metadata<'static> for BootOption {
68    const JSON_SCHEMA: &'static str = "BootOption.v1_0_4.json";
69}