Struct dnsimple::dnsimple::accounts::Accounts[][src]

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

The Accounts Service handles the accounts endpoint of the DNSimple API.

See API Documentation: accounts

Fields

client: &'a Client

Implementations

Lists the accounts the current authenticated entity has access to.

Examples
use dnsimple::dnsimple::new_client;
let client = new_client(true, String::from("AUTH_TOKEN"));

let response = client.accounts().list_accounts().unwrap();
let accounts = response.data.unwrap();
let first_account = accounts.first().unwrap();

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.