redfish-codegen 0.3.1

An unopinionated translation of the Redfish specification into Rust.
Documentation
// Generated by redfish-codegen. Do not modify.


/// The enumerations of WatchdogTimeoutActions specify the choice of action to take when the host watchdog timer reaches its timeout value.
#[derive(Clone, Debug, serde::Deserialize, serde::Serialize)]
pub enum WatchdogTimeoutActions {
    /// No action taken.
    None,
    /// Reset the system.
    ResetSystem,
    /// Power cycle the system.
    PowerCycle,
    /// Power down the system.
    PowerDown,
    /// Perform an OEM-defined action.
    OEM,
}

#[allow(clippy::derivable_impls)]
impl Default for WatchdogTimeoutActions {
     fn default() -> WatchdogTimeoutActions {
        WatchdogTimeoutActions::None
     }
}

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