redfish_codegen/models/computer_system/v1_20_1/
boot_progress.rs

1// Generated by redfish-codegen. Do not modify.
2
3use crate::models;
4
5/// This object describes the last boot progress state.
6#[derive(Clone, Debug, serde::Deserialize, serde::Serialize)]
7#[derive(derivative::Derivative)]
8#[derivative(Default)]
9pub struct BootProgress {
10    /// The number of seconds the system spent booting to the operating system during the last boot.
11    #[serde(rename = "LastBootTimeSeconds")]
12    #[serde(default, skip_serializing_if = "Option::is_none")]
13    pub last_boot_time_seconds: Option<f64>,
14    #[serde(rename = "LastState")]
15    #[serde(default, skip_serializing_if = "Option::is_none")]
16    pub last_state: Option<models::computer_system::v1_20_1::BootProgressTypes>,
17    /// The date and time when the last boot state was updated.
18    #[serde(rename = "LastStateTime")]
19    #[serde(default, skip_serializing_if = "Option::is_none")]
20    pub last_state_time: Option<String>,
21    #[serde(rename = "Oem")]
22    #[serde(default, skip_serializing_if = "Option::is_none")]
23    pub oem: Option<models::resource::Oem>,
24    /// The OEM-specific last state, if the LastState type is `OEM`.
25    #[serde(rename = "OemLastState")]
26    #[serde(default, skip_serializing_if = "Option::is_none")]
27    pub oem_last_state: Option<String>,
28}
29
30impl crate::Metadata<'static> for BootProgress {
31    const JSON_SCHEMA: &'static str = "ComputerSystem.v1_20_1.json";
32}