redfish-codegen 0.3.1

An unopinionated translation of the Redfish specification into Rust.
Documentation
// Generated by redfish-codegen. Do not modify.


#[derive(Clone, Debug, serde::Deserialize, serde::Serialize)]
pub enum LinkStatus {
    /// This link on this interface is up.
    LinkUp,
    /// This link on this interface is starting.  A physical link has been established, but the port is not able to transfer data.
    Starting,
    /// This physical link on this interface is training.
    Training,
    /// The link on this interface is down.
    LinkDown,
    /// No physical link detected on this interface.
    NoLink,
}

#[allow(clippy::derivable_impls)]
impl Default for LinkStatus {
     fn default() -> LinkStatus {
        LinkStatus::LinkUp
     }
}

impl crate::Metadata<'static> for LinkStatus {
    const JSON_SCHEMA: &'static str = "Port.v1_8_0.json";
}