redfish_codegen/models/ethernet_interface/v1_10_0/
dhcp_fallback.rs

1// Generated by redfish-codegen. Do not modify.
2
3
4#[derive(Clone, Debug, serde::Deserialize, serde::Serialize)]
5pub enum DHCPFallback {
6    /// DHCP shall fall back to a static address specified by IPv4StaticAddresses.
7    Static,
8    /// DHCP shall fall back to an address generated by the implementation.
9    AutoConfig,
10    /// DHCP shall continue trying to obtain an address without falling back to a fixed address.
11    None,
12}
13
14#[allow(clippy::derivable_impls)]
15impl Default for DHCPFallback {
16     fn default() -> DHCPFallback {
17        DHCPFallback::Static
18     }
19}
20
21impl crate::Metadata<'static> for DHCPFallback {
22    const JSON_SCHEMA: &'static str = "EthernetInterface.v1_10_0.json";
23}