pub struct Nameservers {
pub hostnames: Vec<DomainName>,
pub name: DomainName,
}
Expand description
A set of nameservers for a domain
Fields§
§hostnames: Vec<DomainName>
Guaranteed to be non-empty.
TODO: find a non-empty-vec type
name: DomainName
Implementations§
Source§impl Nameservers
impl Nameservers
pub fn match_count(&self) -> usize
Trait Implementations§
Source§impl Clone for Nameservers
impl Clone for Nameservers
Source§fn clone(&self) -> Nameservers
fn clone(&self) -> Nameservers
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 Nameservers
impl Debug for Nameservers
Source§impl Hash for Nameservers
impl Hash for Nameservers
Source§impl Ord for Nameservers
impl Ord for Nameservers
Source§fn cmp(&self, other: &Nameservers) -> Ordering
fn cmp(&self, other: &Nameservers) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for Nameservers
impl PartialEq for Nameservers
Source§impl PartialOrd for Nameservers
impl PartialOrd for Nameservers
impl Eq for Nameservers
impl StructuralPartialEq for Nameservers
Auto Trait Implementations§
impl Freeze for Nameservers
impl RefUnwindSafe for Nameservers
impl Send for Nameservers
impl Sync for Nameservers
impl Unpin for Nameservers
impl UnwindSafe for Nameservers
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.