redfish_codegen/models/port/v1_9_0/
current_port_configuration_state.rs

1// Generated by redfish-codegen. Do not modify.
2
3
4#[derive(Clone, Debug, serde::Deserialize, serde::Serialize)]
5pub enum CurrentPortConfigurationState {
6    /// This value shall indicate the port is disabled.
7    Disabled,
8    /// This value shall indicate a bind is in progress for the port.
9    BindInProgress,
10    /// This value shall indicate an unbind is in progress for the port.
11    UnbindInProgress,
12    /// This value shall indicate the port is enabled as a downstream port (DSP).
13    DSP,
14    /// This value shall indicate the port is enabled as an upstream port (USP).
15    USP,
16    /// This value shall indicate the port is in a reserved state.
17    Reserved,
18}
19
20#[allow(clippy::derivable_impls)]
21impl Default for CurrentPortConfigurationState {
22     fn default() -> CurrentPortConfigurationState {
23        CurrentPortConfigurationState::Disabled
24     }
25}
26
27impl crate::Metadata<'static> for CurrentPortConfigurationState {
28    const JSON_SCHEMA: &'static str = "Port.v1_9_0.json";
29}