Crate gtld_data [] [src]

Reexports

pub use gtlds::all;

Modules

gtlds

Structs

Gtld

Representation of each Gtld with its three key pieces of data:

Enums

GtldKind

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

Functions

domain_exists

Determines whether a domain exists within a Gtld defined by the gtld_data::all() method.

get_by_kind

Retrieves all Gtlds defined by the gtld_data::all() method given a GtldKind enum value. For example, passing a GtldKind::Generic will return all Gtlds that have a kind value of GtldKind::Generic.

get_by_organization

Retrieves all Gtlds defined by the gtld_data::all() method with an organization name equal to that of the organization passed.