Enum gtld_data::GtldKind [] [src]

pub enum GtldKind {
    CountryCode,
    GenericRestricted,
    Generic,
    Infrastructure,
    Sponsored,
    Test,
}

The type of what a Gtld is. Each Gtld has a different type, with each having a different purpose.

Wikipedia has a good summary of the differences of each:

https://en.wikipedia.org/wiki/Top-level_domain#Types

Derives Clone, Debug, and PartialEq.

Variants

CountryCode

ccTLD: Two-letter domains established for countries or territories.

GenericRestricted

grTLD: domains managed under official ICANN accredited registrars.

Generic

gTLD: Top-level domains with three or more characters.

Infrastructure

ARPA: Consists of one domain, the Address and Routing Parameter Area.

Sponsored

Domains that are proposed and sponsored by private agencies or organizations.

Test

Domains installed under .test for testing purposes in the IDN development process.

Trait Implementations

impl PartialEq for GtldKind
[src]

fn eq(&self, __arg_0: &GtldKind) -> bool

This method tests for self and other values to be equal, and is used by ==. Read more

fn ne(&self, other: &Rhs) -> bool
1.0.0

This method tests for !=.

impl Debug for GtldKind
[src]

fn fmt(&self, __arg_0: &mut Formatter) -> Result

Formats the value using the given formatter.

impl Clone for GtldKind
[src]

fn clone(&self) -> GtldKind

Returns a copy of the value. Read more

fn clone_from(&mut self, source: &Self)
1.0.0

Performs copy-assignment from source. Read more