pub struct InstanceStateNetworkAddress {
pub address: Option<String>,
pub family: Option<String>,
pub netmask: Option<String>,
pub scope: Option<String>,
}Expand description
InstanceStateNetworkAddress : InstanceStateNetworkAddress represents a network address as part of the network section of an instance’s state.
Fields§
§address: Option<String>IP address
family: Option<String>Network family (inet or inet6)
netmask: Option<String>Network mask
scope: Option<String>Address scope (local, link or global)
Implementations§
Source§impl InstanceStateNetworkAddress
impl InstanceStateNetworkAddress
Sourcepub fn new() -> InstanceStateNetworkAddress
pub fn new() -> InstanceStateNetworkAddress
InstanceStateNetworkAddress represents a network address as part of the network section of an instance’s state.
Trait Implementations§
Source§impl Clone for InstanceStateNetworkAddress
impl Clone for InstanceStateNetworkAddress
Source§fn clone(&self) -> InstanceStateNetworkAddress
fn clone(&self) -> InstanceStateNetworkAddress
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 InstanceStateNetworkAddress
impl Debug for InstanceStateNetworkAddress
Source§impl Default for InstanceStateNetworkAddress
impl Default for InstanceStateNetworkAddress
Source§fn default() -> InstanceStateNetworkAddress
fn default() -> InstanceStateNetworkAddress
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for InstanceStateNetworkAddress
impl<'de> Deserialize<'de> for InstanceStateNetworkAddress
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
Source§impl PartialEq for InstanceStateNetworkAddress
impl PartialEq for InstanceStateNetworkAddress
Source§fn eq(&self, other: &InstanceStateNetworkAddress) -> bool
fn eq(&self, other: &InstanceStateNetworkAddress) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for InstanceStateNetworkAddress
Auto Trait Implementations§
impl Freeze for InstanceStateNetworkAddress
impl RefUnwindSafe for InstanceStateNetworkAddress
impl Send for InstanceStateNetworkAddress
impl Sync for InstanceStateNetworkAddress
impl Unpin for InstanceStateNetworkAddress
impl UnsafeUnpin for InstanceStateNetworkAddress
impl UnwindSafe for InstanceStateNetworkAddress
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more