pub struct NetInterface {
pub mac_address: Option<String>,
pub subnets: Option<Vec<NetAddress>>,
}
Fields§
§mac_address: Option<String>
MacAddress for this Interface.
subnets: Option<Vec<NetAddress>>
Subnets list of assigned subnets with their gateway.
Implementations§
Source§impl NetInterface
impl NetInterface
pub fn new() -> NetInterface
Trait Implementations§
Source§impl Clone for NetInterface
impl Clone for NetInterface
Source§fn clone(&self) -> NetInterface
fn clone(&self) -> NetInterface
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 NetInterface
impl Debug for NetInterface
Source§impl Default for NetInterface
impl Default for NetInterface
Source§fn default() -> NetInterface
fn default() -> NetInterface
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for NetInterface
impl<'de> Deserialize<'de> for NetInterface
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 NetInterface
impl PartialEq for NetInterface
Source§impl Serialize for NetInterface
impl Serialize for NetInterface
impl StructuralPartialEq for NetInterface
Auto Trait Implementations§
impl Freeze for NetInterface
impl RefUnwindSafe for NetInterface
impl Send for NetInterface
impl Sync for NetInterface
impl Unpin for NetInterface
impl UnwindSafe for NetInterface
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