Struct gtld_data::Gtld [] [src]

pub struct Gtld<'a> {
    pub domain: &'a str,
    pub kind: GtldKind,
    pub organization: &'a str,
}

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

  • domain: str of the domain name for this Gtld, such as com or pw.
  • kind: GtldKind enum value of the type of Gtld that this is. For technical purposes, this is renamed from type to kind.
  • organization: str of the name of the organization that represents this Gtld.

Derives Clone and Debug.

Fields

domain: &'a str kind: GtldKind organization: &'a str

Trait Implementations

impl<'a> Debug for Gtld<'a>
[src]

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

Formats the value using the given formatter.

impl<'a> Clone for Gtld<'a>
[src]

fn clone(&self) -> Gtld<'a>

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