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 type describes the host watchdog timer functionality for this system.
#[derive(Clone, Debug, serde::Deserialize, serde::Serialize)]
#[derive(derivative::Derivative)]
#[derivative(Default)]
pub struct WatchdogTimer {
    /// An indication of whether a user has enabled the host watchdog timer functionality.  This property indicates only that a user has enabled the timer.  To activate the timer, installation of additional host-based software is necessary; an update to this property does not initiate the timer.
    #[serde(rename = "FunctionEnabled")]
    pub function_enabled: bool,
    #[serde(rename = "Oem")]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub oem: Option<models::resource::Oem>,
    #[serde(rename = "Status")]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub status: Option<models::resource::Status>,
    #[serde(rename = "TimeoutAction")]
    pub timeout_action: models::computer_system::v1_20_1::WatchdogTimeoutActions,
    #[serde(rename = "WarningAction")]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub warning_action: Option<models::computer_system::v1_20_1::WatchdogWarningActions>,
}

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