redfish_codegen/models/pcie_function/v1_5_0/device_class.rs
1// Generated by redfish-codegen. Do not modify.
2
3
4#[derive(Clone, Debug, serde::Deserialize, serde::Serialize)]
5pub enum DeviceClass {
6 /// An unclassified device.
7 UnclassifiedDevice,
8 /// A mass storage controller.
9 MassStorageController,
10 /// A network controller.
11 NetworkController,
12 /// A display controller.
13 DisplayController,
14 /// A multimedia controller.
15 MultimediaController,
16 /// A memory controller.
17 MemoryController,
18 /// A bridge.
19 Bridge,
20 /// A communication controller.
21 CommunicationController,
22 /// A generic system peripheral.
23 GenericSystemPeripheral,
24 /// An input device controller.
25 InputDeviceController,
26 /// A docking station.
27 DockingStation,
28 /// A processor.
29 Processor,
30 /// A serial bus controller.
31 SerialBusController,
32 /// A wireless controller.
33 WirelessController,
34 /// An intelligent controller.
35 IntelligentController,
36 /// A satellite communications controller.
37 SatelliteCommunicationsController,
38 /// An encryption controller.
39 EncryptionController,
40 /// A signal processing controller.
41 SignalProcessingController,
42 /// A processing accelerators.
43 ProcessingAccelerators,
44 /// A non-essential instrumentation.
45 NonEssentialInstrumentation,
46 /// A coprocessor.
47 Coprocessor,
48 /// An unassigned class.
49 UnassignedClass,
50 /// Other class. The function Class Code needs to be verified.
51 Other,
52}
53
54#[allow(clippy::derivable_impls)]
55impl Default for DeviceClass {
56 fn default() -> DeviceClass {
57 DeviceClass::UnclassifiedDevice
58 }
59}
60
61impl crate::Metadata<'static> for DeviceClass {
62 const JSON_SCHEMA: &'static str = "PCIeFunction.v1_5_0.json";
63}