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 CableClass {
    /// This cable is used for connecting to a power system.
    Power,
    /// This cable is used for connecting to a networking system.
    Network,
    /// This cable is used for connecting to a storage system.
    Storage,
    /// This cable is used for connecting to a fan system.
    Fan,
    /// This cable is used for connecting to a PCIe endpoint.
    PCIe,
    /// This cable is used for connecting to a USB endpoint.
    USB,
    /// This cable is used for connecting to a video system.
    Video,
    /// This cable is used for connecting to a fabric.
    Fabric,
    /// This cable is used for connecting to a serial endpoint.
    Serial,
    /// This cable is used for providing general connectivity.
    General,
}

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

impl crate::Metadata<'static> for CableClass {
    const JSON_SCHEMA: &'static str = "Cable.v1_2_0.json";
}