Struct dnsimple::dnsimple::registrar::Registrar[][src]

pub struct Registrar<'a> {
    pub client: &'a Client,
}
Expand description

The Registrar Service handles the domains registrations of the DNSimple API.

See API Documentation: registrar

Fields

client: &'a Client

Implementations

Checks a domain name for availability.

Examples
use dnsimple::dnsimple::new_client;

let client = new_client(true, String::from("AUTH_TOKEN"));
let domain_check = client.registrar().check_domain(1234, "example.com").unwrap().data.unwrap();
Attributes

account_id: The account id domain: The domain name

👎 Deprecated:

please use get_domain_prices instead

Get the premium price for a domain.

Examples
use dnsimple::dnsimple::new_client;

let client = new_client(true, String::from("AUTH_TOKEN"));
let domain_check = client.registrar().check_domain_premium_price(1234, "example.com", None).unwrap().data.unwrap();
Attributes

account_id: The account id domain: The domain name

Get a domain’s price for registration, renewal, and transfer.

Examples
use dnsimple::dnsimple::new_client;

let client = new_client(true, String::from("AUTH_TOKEN"));
let domain_check = client.registrar().get_domain_prices(1234, "example.com").unwrap().data.unwrap();
Attributes

account_id: The account id domain: The domain name

Get a domain’s price for registration, renewal, and transfer.

Examples
use dnsimple::dnsimple::new_client;
use dnsimple::dnsimple::registrar::DomainRegistrationPayload;

let client = new_client(true, String::from("AUTH_TOKEN"));
let payload = DomainRegistrationPayload {
    registrant_id: 42,
    whois_privacy: None,
    auto_renew: None,
    extended_attributes: None,
    premium_price: None,
};
let domain_check = client.registrar().register_domain(1234, "example.com", payload).unwrap().data.unwrap();
Attributes

account_id: The account id domain: The domain name payload: The DomainRegistrationPayload with the information needed to register the domain

Transfer a domain name from another domain registrar into DNSimple.

Examples
use dnsimple::dnsimple::new_client;
use dnsimple::dnsimple::registrar::DomainTransferPayload;

let client = new_client(true, String::from("AUTH_TOKEN"));
let payload = DomainTransferPayload {
    registrant_id: 42,
    auth_code: "Some code".to_string(),
    whois_privacy: None,
    auto_renew: None,
    extended_attributes: None,
    premium_price: None,
};
let domain_transfer = client.registrar().transfer_domain(1234, "example.com", payload).unwrap().data.unwrap();
Attributes

account_id: The account id domain: The domain name payload: The DomainTransferPayload with the information needed to transfer the domain

Retrieves the details of an existing domain transfer.

Attributes

account_id: The account id domain: The domain name domain_transfer: The domain transfer id

Cancels an in progress domain transfer.

Attributes

account_id: The account id domain: The domain name domain_transfer: The domain transfer id

Get a domain’s price for registration, renewal, and transfer.

Attributes

account_id: The account id domain: The domain name payload: The DomainRenewalPayload with the information needed to renew the domain

Authorize a domain transfer out

Attributes

account_id: The account id domain: The domain name

Enable domain auto-renewal

Arguments

account_id: The account ID domain: The domain name or id

Disable domain auto-renewal

Arguments

account_id: The account ID domain: The domain name or id

List name servers for the domain in the account.

Arguments

account_id: The account ID domain: The domain name or id

Change domain name servers

Arguments

account_id: The account ID domain: The domain name or id server_names: A list of name server names as strings

Delegate to vanity name servers

Arguments

account_id: The account ID domain: The domain name or id server_names: A list of name server names as strings

De-delegate from vanity name servers

Arguments

account_id: The account ID domain: The domain name or id

Retrieve the domain WHOIS privacy

Arguments

account_id: The account ID domain: The domain name or id

Enable WHOIS privacy

Arguments

account_id: The account ID domain: The domain name or id

Enable WHOIS privacy

Arguments

account_id: The account ID domain: The domain name or id

Renew WHOIS privacy

Arguments

account_id: The account ID domain: The domain name or id

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

Performs the conversion.

Performs the conversion.

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.