Struct dnsimple::dnsimple::identity::Identity[][src]

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

The Identity Service handles the identity (whoami) endpoint of the DNSimple API.

See API Documentation: identity

Fields

client: &'a Client

Implementations

Retrieves the details about the current authenticated entity used to access the API.

Examples
use dnsimple::dnsimple::{Client, new_client};

let client = new_client(true, String::from("AUTH_TOKEN"));
let response = client.identity().whoami().unwrap().data.unwrap();
let account = response.account.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.