redfish_codegen/models/power/v1_7_1/power_limit_exception.rs
1// Generated by redfish-codegen. Do not modify.
2
3
4#[derive(Clone, Debug, serde::Deserialize, serde::Serialize)]
5pub enum PowerLimitException {
6 /// Take no action when the limit is exceeded.
7 NoAction,
8 /// Turn the power off immediately when the limit is exceeded.
9 HardPowerOff,
10 /// Log an event when the limit is exceeded, but take no further action.
11 LogEventOnly,
12 /// Take an OEM-defined action.
13 Oem,
14}
15
16#[allow(clippy::derivable_impls)]
17impl Default for PowerLimitException {
18 fn default() -> PowerLimitException {
19 PowerLimitException::NoAction
20 }
21}
22
23impl crate::Metadata<'static> for PowerLimitException {
24 const JSON_SCHEMA: &'static str = "Power.v1_7_1.json";
25}