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 DeviceClass {
    /// An unclassified device.
    UnclassifiedDevice,
    /// A mass storage controller.
    MassStorageController,
    /// A network controller.
    NetworkController,
    /// A display controller.
    DisplayController,
    /// A multimedia controller.
    MultimediaController,
    /// A memory controller.
    MemoryController,
    /// A bridge.
    Bridge,
    /// A communication controller.
    CommunicationController,
    /// A generic system peripheral.
    GenericSystemPeripheral,
    /// An input device controller.
    InputDeviceController,
    /// A docking station.
    DockingStation,
    /// A processor.
    Processor,
    /// A serial bus controller.
    SerialBusController,
    /// A wireless controller.
    WirelessController,
    /// An intelligent controller.
    IntelligentController,
    /// A satellite communications controller.
    SatelliteCommunicationsController,
    /// An encryption controller.
    EncryptionController,
    /// A signal processing controller.
    SignalProcessingController,
    /// A processing accelerators.
    ProcessingAccelerators,
    /// A non-essential instrumentation.
    NonEssentialInstrumentation,
    /// A coprocessor.
    Coprocessor,
    /// An unassigned class.
    UnassignedClass,
    /// Other class.  The function Class Code needs to be verified.
    Other,
}

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

impl crate::Metadata<'static> for DeviceClass {
    const JSON_SCHEMA: &'static str = "PCIeFunction.v1_5_0.json";
}