Struct annis::OAuth [−][src]
pub struct OAuth { pub client_id: String, }
A make request to autholize.
Fields
client_id: String
Methods
impl OAuth
[src]
impl OAuth
pub fn client_id<P>(client_id: P) -> OAuth where
P: Into<String>,
[src]
pub fn client_id<P>(client_id: P) -> OAuth where
P: Into<String>,
pub fn info() -> Service<String>
[src]
pub fn info() -> Service<String>
Request to /oauth/token/info
Examples
let client = Client::set_token("annict_access_token"); let info = OAuth::info(); client.call(info)?;
pub fn revoke<A>(access_token: A) -> Service<String> where
A: Into<String>,
[src]
pub fn revoke<A>(access_token: A) -> Service<String> where
A: Into<String>,
Request to /oauth/revoke
Examples
let client = Client::set_token("annict_access_token"); let revoke = OAuth::revoke("revoke_access_token"); client.call(revoke)?;
pub fn access_token(&self) -> AccessToken
[src]
pub fn access_token(&self) -> AccessToken
Trait Implementations
impl Debug for OAuth
[src]
impl Debug for OAuth
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl Clone for OAuth
[src]
impl Clone for OAuth