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;

/// This object describes the last boot progress state.
#[derive(Clone, Debug, serde::Deserialize, serde::Serialize)]
#[derive(derivative::Derivative)]
#[derivative(Default)]
pub struct BootProgress {
    /// The number of seconds the system spent booting to the operating system during the last boot.
    #[serde(rename = "LastBootTimeSeconds")]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub last_boot_time_seconds: Option<f64>,
    #[serde(rename = "LastState")]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub last_state: Option<models::computer_system::v1_20_1::BootProgressTypes>,
    /// The date and time when the last boot state was updated.
    #[serde(rename = "LastStateTime")]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub last_state_time: Option<String>,
    #[serde(rename = "Oem")]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub oem: Option<models::resource::Oem>,
    /// The OEM-specific last state, if the LastState type is `OEM`.
    #[serde(rename = "OemLastState")]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub oem_last_state: Option<String>,
}

impl crate::Metadata<'static> for BootProgress {
    const JSON_SCHEMA: &'static str = "ComputerSystem.v1_20_1.json";
}