redfish_codegen/models/connection/v1_2_0/
access_state.rs

1// Generated by redfish-codegen. Do not modify.
2
3
4/// Describes the options for the access characteristics of a resource.
5#[derive(Clone, Debug, serde::Deserialize, serde::Serialize)]
6pub enum AccessState {
7    /// This value shall indicate the resource is in an active and optimized state.
8    Optimized,
9    /// This value shall indicate the resource is in an active and non-optimized state.
10    NonOptimized,
11    /// This value shall indicate the resource is in a standby state.
12    Standby,
13    /// This value shall indicate the resource is in an unavailable state.
14    Unavailable,
15    /// This value shall indicate the resource is transitioning to a new state.
16    Transitioning,
17}
18
19#[allow(clippy::derivable_impls)]
20impl Default for AccessState {
21     fn default() -> AccessState {
22        AccessState::Optimized
23     }
24}
25
26impl crate::Metadata<'static> for AccessState {
27    const JSON_SCHEMA: &'static str = "Connection.v1_2_0.json";
28}