pub struct NetAddress {
pub gateway: Option<String>,
pub ipnet: Option<IpNet>,
}
Available on crate feature
v5
only.Expand description
NetAddress contains the ip address, subnet and gateway.
Fields§
§gateway: Option<String>
Gateway for the network. This can be empty if there is no gateway, e.g. internal network.
ipnet: Option<IpNet>
Trait Implementations§
Source§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
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