redfish_codegen/models/pcie_device/v1_11_1/
slot_type.rs

1// Generated by redfish-codegen. Do not modify.
2
3
4#[derive(Clone, Debug, serde::Deserialize, serde::Serialize)]
5pub enum SlotType {
6    /// Full-Length PCIe slot.
7    FullLength,
8    /// Half-Length PCIe slot.
9    HalfLength,
10    /// Low-Profile or Slim PCIe slot.
11    LowProfile,
12    /// Mini PCIe slot.
13    Mini,
14    /// PCIe M.2 slot.
15    M2,
16    /// An OEM-specific slot.
17    OEM,
18    /// Open Compute Project 3.0 small form factor slot.
19    #[serde(rename = "OCP3Small")]
20    OCP3S,
21    /// Open Compute Project 3.0 large form factor slot.
22    #[serde(rename = "OCP3Large")]
23    OCP3L,
24    /// U.2 / SFF-8639 slot or bay.
25    U2,
26}
27
28#[allow(clippy::derivable_impls)]
29impl Default for SlotType {
30     fn default() -> SlotType {
31        SlotType::FullLength
32     }
33}
34
35impl crate::Metadata<'static> for SlotType {
36    const JSON_SCHEMA: &'static str = "PCIeDevice.v1_11_1.json";
37}