Struct annis::OAuth[][src]

pub struct OAuth {
    pub client_id: String,
}

A make request to autholize.

Fields

Methods

impl OAuth
[src]

Request to /oauth/token/info

Examples

let client = Client::set_token("annict_access_token");

let info = OAuth::info();

client.call(info)?;

Request to /oauth/revoke

Examples

let client = Client::set_token("annict_access_token");

let revoke = OAuth::revoke("revoke_access_token");

client.call(revoke)?;

Trait Implementations

impl Debug for OAuth
[src]

Formats the value using the given formatter. Read more

impl Clone for OAuth
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Auto Trait Implementations

impl Send for OAuth

impl Sync for OAuth