Enum dominion::RecordData
source · #[non_exhaustive]
pub enum RecordData<'a> {
A(Ipv4Addr),
Ns(Name<'a>),
Cname(Name<'a>),
Mx {
preference: u16,
exchange: Name<'a>,
},
Txt(Cow<'a, str>),
Aaaa(Ipv6Addr),
Unknown(Cow<'a, [u8]>),
}
Expand description
The ResourceRecord data associated with the corresponding Name.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
A(Ipv4Addr)
A host address.
Ns(Name<'a>)
An authoritative name server
Cname(Name<'a>)
The canonical name for an alias.
Mx
Fields
Mail exchange.
Txt(Cow<'a, str>)
Text strings
Aaaa(Ipv6Addr)
A host address IPv6
Unknown(Cow<'a, [u8]>)
?: A value has been received that does not correspond to any known type.
Trait Implementations§
source§impl<'a> Clone for RecordData<'a>
impl<'a> Clone for RecordData<'a>
source§fn clone(&self) -> RecordData<'a>
fn clone(&self) -> RecordData<'a>
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 more