redfish-codegen 0.3.1

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


#[derive(Clone, Debug, serde::Deserialize, serde::Serialize)]
pub enum PowerLimitException {
    /// Take no action when the limit is exceeded.
    NoAction,
    /// Turn the power off immediately when the limit is exceeded.
    HardPowerOff,
    /// Log an event when the limit is exceeded, but take no further action.
    LogEventOnly,
    /// Take an OEM-defined action.
    Oem,
}

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

impl crate::Metadata<'static> for PowerLimitException {
    const JSON_SCHEMA: &'static str = "Power.v1_7_1.json";
}