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 WatchdogWarningActions specify the choice of action to take when the host watchdog timer is close (typically 3-10 seconds) to reaching its timeout value.
#[derive(Clone, Debug, serde::Deserialize, serde::Serialize)]
pub enum WatchdogWarningActions {
    /// No action taken.
    None,
    /// Raise a (typically non-maskable) Diagnostic Interrupt.
    DiagnosticInterrupt,
    /// Raise a Systems Management Interrupt (SMI).
    SMI,
    /// Raise a legacy IPMI messaging interrupt.
    MessagingInterrupt,
    /// Raise an interrupt using the ACPI System Control Interrupt (SCI).
    SCI,
    /// Perform an OEM-defined action.
    OEM,
}

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

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