redfish_codegen/models/cable/v1_2_1/
cable_class.rs

1// Generated by redfish-codegen. Do not modify.
2
3
4#[derive(Clone, Debug, serde::Deserialize, serde::Serialize)]
5pub enum CableClass {
6    /// This cable is used for connecting to a power system.
7    Power,
8    /// This cable is used for connecting to a networking system.
9    Network,
10    /// This cable is used for connecting to a storage system.
11    Storage,
12    /// This cable is used for connecting to a fan system.
13    Fan,
14    /// This cable is used for connecting to a PCIe endpoint.
15    PCIe,
16    /// This cable is used for connecting to a USB endpoint.
17    USB,
18    /// This cable is used for connecting to a video system.
19    Video,
20    /// This cable is used for connecting to a fabric.
21    Fabric,
22    /// This cable is used for connecting to a serial endpoint.
23    Serial,
24    /// This cable is used for providing general connectivity.
25    General,
26}
27
28#[allow(clippy::derivable_impls)]
29impl Default for CableClass {
30     fn default() -> CableClass {
31        CableClass::Power
32     }
33}
34
35impl crate::Metadata<'static> for CableClass {
36    const JSON_SCHEMA: &'static str = "Cable.v1_2_1.json";
37}