redfish_codegen/models/ethernet_interface/v1_10_0/
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 link is available for communication on this interface.
7    LinkUp,
8    /// No link or connection is detected on this interface.
9    NoLink,
10    /// No link is detected on this interface, but the interface is connected.
11    LinkDown,
12}
13
14#[allow(clippy::derivable_impls)]
15impl Default for LinkStatus {
16     fn default() -> LinkStatus {
17        LinkStatus::LinkUp
18     }
19}
20
21impl crate::Metadata<'static> for LinkStatus {
22    const JSON_SCHEMA: &'static str = "EthernetInterface.v1_10_0.json";
23}