#[non_exhaustive]pub enum RecordType {
Show 42 variants
A,
AAAA,
AFSDB,
APL,
CAA,
CDNSKEY,
CDS,
CERT,
CNAME,
DHCID,
DLV,
DNAME,
DNSKEY,
DS,
EUI48,
EUI64,
HINFO,
HTTPS,
KX,
L32,
L64,
LOC,
LP,
MX,
NAPTR,
NID,
NS,
NSEC3PARAM,
OPENPGPKEY,
PTR,
RP,
RRSIG,
SMIMEA,
SOA,
SPF,
SRV,
SSHFP,
SVCB,
TLSA,
TXT,
URI,
Other(String),
}Expand description
A DNS record type.
Deliberately non-exhaustive over the wire: unknown mnemonics deserialize into
RecordType::Other rather than failing, so a record type added upstream does not
break a client that has not been rebuilt.
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
AAAA
AFSDB
APL
CAA
CDNSKEY
CDS
CERT
CNAME
DHCID
DLV
DNAME
DNSKEY
DS
EUI48
EUI64
HINFO
HTTPS
KX
L32
L64
LOC
LP
MX
NAPTR
NID
NS
NSEC3PARAM
OPENPGPKEY
PTR
RP
RRSIG
SMIMEA
SOA
SPF
SRV
SSHFP
SVCB
TLSA
TXT
URI
Other(String)
A type this crate does not name. Held uppercased, as the API requires.
Implementations§
Source§impl RecordType
impl RecordType
Sourcepub fn is_dnssec_managed(&self) -> bool
pub fn is_dnssec_managed(&self) -> bool
Whether deSEC signs and serves this type itself, making it read-only at the zone apex.
DS is the reason this is qualified: at the apex it belongs to the parent zone
and deSEC manages it, but at a subname it is an ordinary delegation record that
callers write. DNSKEY, CDNSKEY and CDS may additionally be written by hand
to support multi-signer setups. So this is a hint for surfacing a likely mistake
early, not a rule the client enforces.
Trait Implementations§
Source§impl Clone for RecordType
impl Clone for RecordType
Source§fn clone(&self) -> RecordType
fn clone(&self) -> RecordType
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 RecordType
impl Debug for RecordType
Source§impl<'de> Deserialize<'de> for RecordType
impl<'de> Deserialize<'de> for RecordType
Source§fn deserialize<D: Deserializer<'de>>(deserializer: D) -> Result<Self, D::Error>
fn deserialize<D: Deserializer<'de>>(deserializer: D) -> Result<Self, D::Error>
Deserialize this value from the given Serde deserializer. Read more
Source§impl Display for RecordType
impl Display for RecordType
impl Eq for RecordType
Source§impl FromStr for RecordType
impl FromStr for RecordType
Source§impl Hash for RecordType
impl Hash for RecordType
Source§impl Ord for RecordType
impl Ord for RecordType
Source§fn cmp(&self, other: &RecordType) -> Ordering
fn cmp(&self, other: &RecordType) -> Ordering
1.21.0 (const: unstable) · 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 RecordType
impl PartialEq for RecordType
Source§impl PartialOrd for RecordType
impl PartialOrd for RecordType
Source§impl Serialize for RecordType
impl Serialize for RecordType
impl StructuralPartialEq for RecordType
Auto Trait Implementations§
impl Freeze for RecordType
impl RefUnwindSafe for RecordType
impl Send for RecordType
impl Sync for RecordType
impl Unpin for RecordType
impl UnsafeUnpin for RecordType
impl UnwindSafe for RecordType
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,
Source§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.