1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
// Generated by redfish-codegen. Do not modify.
#[derive(Clone, Debug, serde::Deserialize, serde::Serialize)]
pub enum State {
/// This function or resource is enabled.
Enabled,
/// This function or resource is disabled.
Disabled,
/// This function or resource is enabled but awaits an external action to activate it.
StandbyOffline,
/// This function or resource is part of a redundancy set and awaits a failover or other external action to activate it.
StandbySpare,
/// This function or resource is undergoing testing, or is in the process of capturing information for debugging.
InTest,
/// This function or resource is starting.
Starting,
/// This function or device is not currently present or detected. This resource represents a capability or an available location where a device can be installed.
Absent,
/// This function or resource is present but cannot be used. Added in version v1_1_0.
UnavailableOffline,
/// The element does not process any commands but queues new requests. Added in version v1_2_0.
Deferring,
/// The element is enabled but only processes a restricted set of commands. Added in version v1_2_0.
Quiesced,
/// The element is updating and might be unavailable or degraded. Added in version v1_2_0.
Updating,
/// The element quality is within the acceptable range of operation. Added in version v1_9_0.
Qualified,
}
#[allow(clippy::derivable_impls)]
impl Default for State {
fn default() -> State {
State::Enabled
}
}
impl crate::Metadata<'static> for State {
const JSON_SCHEMA: &'static str = "Resource.json";
}