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
sourceimpl 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
sourceimpl Clone for PortExtraDhcpOption
impl Clone for PortExtraDhcpOption
sourcefn clone(&self) -> PortExtraDhcpOption
fn clone(&self) -> PortExtraDhcpOption
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresourceimpl Debug for PortExtraDhcpOption
impl Debug for PortExtraDhcpOption
sourceimpl<'de> Deserialize<'de> for PortExtraDhcpOption
impl<'de> Deserialize<'de> for PortExtraDhcpOption
sourcefn 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
sourceimpl Serialize for PortExtraDhcpOption
impl Serialize for PortExtraDhcpOption
Auto Trait Implementations
impl RefUnwindSafe for PortExtraDhcpOption
impl Send for PortExtraDhcpOption
impl Sync for PortExtraDhcpOption
impl Unpin for PortExtraDhcpOption
impl UnwindSafe for PortExtraDhcpOption
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more