pub struct NetAddress {
pub gateway: Option<String>,
pub ipnet: Option<Box<IpNet>>,
}
Fields§
§gateway: Option<String>
Gateway for the network. This can be empty if there is no gateway, e.g. internal network.
ipnet: Option<Box<IpNet>>
Implementations§
Source§impl NetAddress
impl NetAddress
pub fn new() -> NetAddress
Trait Implementations§
Source§impl Clone for NetAddress
impl Clone for NetAddress
Source§fn clone(&self) -> NetAddress
fn clone(&self) -> NetAddress
Returns a duplicate 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 NetAddress
impl Debug for NetAddress
Source§impl Default for NetAddress
impl Default for NetAddress
Source§fn default() -> NetAddress
fn default() -> NetAddress
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for NetAddress
impl<'de> Deserialize<'de> for NetAddress
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 NetAddress
impl PartialEq for NetAddress
Source§impl Serialize for NetAddress
impl Serialize for NetAddress
impl StructuralPartialEq for NetAddress
Auto Trait Implementations§
impl Freeze for NetAddress
impl RefUnwindSafe for NetAddress
impl Send for NetAddress
impl Sync for NetAddress
impl Unpin for NetAddress
impl UnwindSafe for NetAddress
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