Struct nispor::Ipv4AddrInfo
source · #[non_exhaustive]pub struct Ipv4AddrInfo {
pub address: String,
pub prefix_len: u8,
pub peer: Option<String>,
pub valid_lft: String,
pub preferred_lft: String,
}
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. }
syntax; cannot be matched against without a wildcard ..
; and struct update syntax will not work.address: String
§prefix_len: u8
§peer: Option<String>
§valid_lft: String
§preferred_lft: String
Trait Implementations§
source§impl Clone for Ipv4AddrInfo
impl Clone for Ipv4AddrInfo
source§fn clone(&self) -> Ipv4AddrInfo
fn clone(&self) -> Ipv4AddrInfo
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 Ipv4AddrInfo
impl Debug for Ipv4AddrInfo
source§impl Default for Ipv4AddrInfo
impl Default for Ipv4AddrInfo
source§fn default() -> Ipv4AddrInfo
fn default() -> Ipv4AddrInfo
Returns the “default value” for a type. Read more
source§impl<'de> Deserialize<'de> for Ipv4AddrInfo
impl<'de> Deserialize<'de> for Ipv4AddrInfo
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 Ipv4AddrInfo
impl PartialEq for Ipv4AddrInfo
source§fn eq(&self, other: &Ipv4AddrInfo) -> bool
fn eq(&self, other: &Ipv4AddrInfo) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl Serialize for Ipv4AddrInfo
impl Serialize for Ipv4AddrInfo
impl Eq for Ipv4AddrInfo
impl StructuralPartialEq for Ipv4AddrInfo
Auto Trait Implementations§
impl Freeze for Ipv4AddrInfo
impl RefUnwindSafe for Ipv4AddrInfo
impl Send for Ipv4AddrInfo
impl Sync for Ipv4AddrInfo
impl Unpin for Ipv4AddrInfo
impl UnwindSafe for Ipv4AddrInfo
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