redfish_codegen/models/network_port/v1_4_1/link_status.rs
1// Generated by redfish-codegen. Do not modify.
2
3
4#[derive(Clone, Debug, serde::Deserialize, serde::Serialize)]
5pub enum LinkStatus {
6 /// The port is enabled but link is down.
7 Down,
8 /// The port is enabled and link is good (up).
9 Up,
10 /// This link on this interface is starting. A physical link has been established, but the port is not able to transfer data. Added in version v1_3_0.
11 Starting,
12 /// This physical link on this interface is training. Added in version v1_3_0.
13 Training,
14}
15
16#[allow(clippy::derivable_impls)]
17impl Default for LinkStatus {
18 fn default() -> LinkStatus {
19 LinkStatus::Down
20 }
21}
22
23impl crate::Metadata<'static> for LinkStatus {
24 const JSON_SCHEMA: &'static str = "NetworkPort.v1_4_1.json";
25}