#[repr(u16)]
#[non_exhaustive]
pub enum ResourceType {
Show 89 variants A, NS, MD, MF, CName, Soa, MB, MG, MR, Null, Wks, Ptr, HInfo, MInfo, MX, Txt, RP, AfsDb, X25, Isdn, Rt, NSap, NSapPtr, Sig, Key, Px, GPos, AAAA, Loc, Nxt, EId, NimLoc, Srv, AtmA, NAPtr, Kx, Cert, A6, DName, Sink, Opt, ApL, DS, SshFp, IpSecKey, RRSig, NSEC, DNSKey, DHCID, NSEC3, NSEC3Param, TLSA, SMimeA, HIP, NInfo, RKey, TALink, CDS, CDNSKey, OpenPGPKey, CSync, ZoneMD, Svcb, Https, Spf, UInfo, UID, GID, Unspec, NID, L32, L64, LP, EUI48, EUI64, TKey, TSig, Ixfr, Axfr, MailB, MailA, Wildcard, Uri, Caa, Avc, Doa, Amtrelay, TA, DLV,
}
Expand description

The resource types that a question can ask for.

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

Get the host’s IPv4 address.

NS

Get the authoritative name servers for a domain.

MD

Get the mail server for a domain.

MF

Get the mail forwarder for a domain.

CName

Get the canonical name for a domain.

Soa

Get the start of authority record for a domain.

MB

Get the mailbox for a domain.

MG

Get the mail group member for a domain.

MR

Get the mail rename domain for a domain.

Null

Get the null record for a domain.

Wks

Get the well known services for a domain.

Ptr

Get the domain pointer for a domain.

HInfo

Get the host information for a domain.

MInfo

Get the mailbox or mail list information for a domain.

MX

Get the mail exchange for a domain.

Txt

Get the text for a domain.

RP

Get the responsible person for a domain.

AfsDb

Get the AFS database location for a domain.

X25

Get the X.25 address for a domain.

Isdn

Get the ISDN address for a domain.

Rt

Get the router for a domain.

NSap

Get the NSAP address for a domain.

NSapPtr

Get the reverse NSAP address for a domain.

Sig

Get the security signature for a domain.

Key

Get the key for a domain.

Px

Get the X.400 mail mapping for a domain.

GPos

Get the geographical location for a domain.

AAAA

Get the IPv6 address for a domain.

Loc

Get the location for a domain.

Nxt

Get the next domain name in a zone.

EId

Get the endpoint identifier for a domain.

NimLoc

Get the Nimrod locator for a domain.

Srv

Get the server selection for a domain.

AtmA

Get the ATM address for a domain.

NAPtr

Get the naming authority pointer for a domain.

Kx

Get the key exchange for a domain.

Cert

Get the certificate for a domain.

A6

Get the IPv6 address for a domain.

This is obsolete; use AAAA instead.

DName

Get the DNAME for a domain.

Sink

Get the sink for a domain.

Opt

Get the OPT for a domain.

ApL

Get the address prefix list for a domain.

DS

Get the delegation signer for a domain.

SshFp

Get the SSH key fingerprint for a domain.

IpSecKey

Get the IPSEC key for a domain.

RRSig

Get the resource record signature for a domain.

NSEC

Get the next secure record for a domain.

DNSKey

Get the DNSKEY for a domain.

DHCID

Get the DHCID for a domain.

NSEC3

Get the NSEC3 for a domain.

NSEC3Param

Get the NSEC3 parameters for a domain.

TLSA

Get the TLSA for a domain.

SMimeA

Get the S/MIME certificate association for a domain.

HIP

Get the host information for a domain.

NInfo

Get the NINFO for a domain.

RKey

Get the RKEY for a domain.

Get the trust anchor link for a domain.

CDS

Get the child DS for a domain.

CDNSKey

Get the DNSKEY for a domain.

OpenPGPKey

Get the OpenPGP key for a domain.

CSync

Get the Child-to-Parent Synchronization for a domain.

ZoneMD

Get the Zone Data Message for a domain.

Svcb

Get the General Purpose Service Binding for a domain.

Https

Get the HTTP Service Binding for a domain.

Spf

Get the Sender Policy Framework for a domain.

UInfo

Get the UINFO for a domain.

UID

Get the UID for a domain.

GID

Get the GID for a domain.

Unspec

Get the UNSPEC for a domain.

NID

Get the NID for a domain.

L32

Get the L32 for a domain.

L64

Get the L64 for a domain.

LP

Get the LP for a domain.

EUI48

Get the EUI48 for a domain.

EUI64

Get the EUI64 for a domain.

TKey

Get the transaction key for a domain.

TSig

Get the transaction signature for a domain.

Ixfr

Get the incremental transfer for a domain.

Axfr

Get the transfer of an entire zone for a domain.

MailB

Get the mailbox-related records for a domain.

MailA

Get the mail agent RRs for a domain.

This is obsolete; use MX instead.

Wildcard

Get the wildcard match for a domain.

Uri

Get the URI for a domain.

Caa

Get the certification authority authorization for a domain.

Avc

Get the application visibility and control for a domain.

Doa

Get the digital object architecture for a domain.

Amtrelay

Get the automatic network discovery for a domain.

TA

Get the DNSSEC trust authorities for a domain.

DLV

Get the DNSSEC lookaside validation for a domain.

Trait Implementations

Returns a copy of the value. Read more
Performs copy-assignment from source. Read more
Formats the value using the given formatter. Read more
Returns the “default value” for a type. Read more
Converts to this type from the input type.
Feeds this value into the given Hasher. Read more
Feeds a slice of this type into the given Hasher. Read more
This method returns an Ordering between self and other. Read more
Compares and returns the maximum of two values. Read more
Compares and returns the minimum of two values. Read more
Restrict a value to a certain interval. Read more
This method tests for self and other values to be equal, and is used by ==. Read more
This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason. Read more
This method returns an ordering between self and other values if one exists. Read more
This method tests less than (for self and other) and is used by the < operator. Read more
This method tests less than or equal to (for self and other) and is used by the <= operator. Read more
This method tests greater than (for self and other) and is used by the > operator. Read more
This method tests greater than or equal to (for self and other) and is used by the >= operator. Read more
The type returned in the event of a conversion error.
Performs the conversion.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The resulting type after obtaining ownership.
Creates owned data from borrowed data, usually by cloning. Read more
Uses borrowed data to replace owned data, usually by cloning. Read more
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.