pub struct InstanceStateNetwork {
pub addresses: Option<Vec<InstanceStateNetworkAddress>>,
pub counters: Option<Box<InstanceStateNetworkCounters>>,
pub host_name: Option<String>,
pub hwaddr: Option<String>,
pub mtu: Option<i64>,
pub state: Option<String>,
pub type: Option<String>,
}Fields§
§addresses: Option<Vec<InstanceStateNetworkAddress>>List of IP addresses
counters: Option<Box<InstanceStateNetworkCounters>>§host_name: Option<String>Name of the interface on the host
hwaddr: Option<String>MAC address
mtu: Option<i64>MTU (maximum transmit unit) for the interface
state: Option<String>Administrative state of the interface (up/down)
type: Option<String>Type of interface (broadcast, loopback, point-to-point, …)
Implementations§
Source§impl InstanceStateNetwork
impl InstanceStateNetwork
pub fn new() -> InstanceStateNetwork
Trait Implementations§
Source§impl Clone for InstanceStateNetwork
impl Clone for InstanceStateNetwork
Source§fn clone(&self) -> InstanceStateNetwork
fn clone(&self) -> InstanceStateNetwork
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 InstanceStateNetwork
impl Debug for InstanceStateNetwork
Source§impl Default for InstanceStateNetwork
impl Default for InstanceStateNetwork
Source§fn default() -> InstanceStateNetwork
fn default() -> InstanceStateNetwork
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for InstanceStateNetwork
impl<'de> Deserialize<'de> for InstanceStateNetwork
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 InstanceStateNetwork
impl PartialEq for InstanceStateNetwork
Source§fn eq(&self, other: &InstanceStateNetwork) -> bool
fn eq(&self, other: &InstanceStateNetwork) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for InstanceStateNetwork
impl Serialize for InstanceStateNetwork
impl StructuralPartialEq for InstanceStateNetwork
Auto Trait Implementations§
impl Freeze for InstanceStateNetwork
impl RefUnwindSafe for InstanceStateNetwork
impl Send for InstanceStateNetwork
impl Sync for InstanceStateNetwork
impl Unpin for InstanceStateNetwork
impl UnsafeUnpin for InstanceStateNetwork
impl UnwindSafe for InstanceStateNetwork
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