redfish_codegen/models/ethernet_interface/v1_10_0/
ethernet_device_type.rs

1// Generated by redfish-codegen. Do not modify.
2
3
4#[derive(Clone, Debug, serde::Deserialize, serde::Serialize)]
5pub enum EthernetDeviceType {
6    /// This value shall indicate a physical traditional network interface.
7    Physical,
8    /// This value shall indicate a network device function has multiple VLANs and is representing one of them as a virtual Ethernet interface.  The NetworkDeviceFunction property within Links shall contain the locator for the parent network device function.
9    Virtual,
10}
11
12#[allow(clippy::derivable_impls)]
13impl Default for EthernetDeviceType {
14     fn default() -> EthernetDeviceType {
15        EthernetDeviceType::Physical
16     }
17}
18
19impl crate::Metadata<'static> for EthernetDeviceType {
20    const JSON_SCHEMA: &'static str = "EthernetInterface.v1_10_0.json";
21}