Struct openstack::network::PortExtraDhcpOption
source · pub struct PortExtraDhcpOption {
pub ip_version: Option<IpVersion>,
pub name: String,
pub value: String,
/* private fields */
}
Expand description
An extra DHCP option.
Fields§
§ip_version: Option<IpVersion>
IP protocol version (if required).
name: String
Option name.
value: String
Option value.
Implementations§
source§impl PortExtraDhcpOption
impl PortExtraDhcpOption
sourcepub fn new<S1, S2>(name: S1, value: S2) -> PortExtraDhcpOptionwhere
S1: Into<String>,
S2: Into<String>,
pub fn new<S1, S2>(name: S1, value: S2) -> PortExtraDhcpOptionwhere S1: Into<String>, S2: Into<String>,
Create a new DHCP option.
sourcepub fn new_with_ip_version<S1, S2>(
name: S1,
value: S2,
ip_version: IpVersion
) -> PortExtraDhcpOptionwhere
S1: Into<String>,
S2: Into<String>,
pub fn new_with_ip_version<S1, S2>( name: S1, value: S2, ip_version: IpVersion ) -> PortExtraDhcpOptionwhere S1: Into<String>, S2: Into<String>,
Create a new DHCP option with an IP version.
Trait Implementations§
source§impl Clone for PortExtraDhcpOption
impl Clone for PortExtraDhcpOption
source§fn clone(&self) -> PortExtraDhcpOption
fn clone(&self) -> PortExtraDhcpOption
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for PortExtraDhcpOption
impl Debug for PortExtraDhcpOption
source§impl<'de> Deserialize<'de> for PortExtraDhcpOption
impl<'de> Deserialize<'de> for PortExtraDhcpOption
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more