Struct annis::AccessToken [−][src]
pub struct AccessToken { pub client_id: String, pub client_secret: String, pub redirect_uri: String, pub code: String, }
A request to get Annict access token.
Fields
client_id: String
client_secret: String
redirect_uri: String
code: String
Methods
impl AccessToken
[src]
impl AccessToken
pub fn new(client_id: String) -> Self
[src]
pub fn new(client_id: String) -> Self
ⓘImportant traits for &'a mut Rpub fn client_secret<P>(&mut self, client_secret: P) -> &mut Self where
P: Into<String>,
[src]
ⓘImportant traits for &'a mut R
pub fn client_secret<P>(&mut self, client_secret: P) -> &mut Self where
P: Into<String>,
ⓘImportant traits for &'a mut Rpub fn code<P>(&mut self, code: P) -> &mut Self where
P: Into<String>,
[src]
ⓘImportant traits for &'a mut R
pub fn code<P>(&mut self, code: P) -> &mut Self where
P: Into<String>,
ⓘImportant traits for &'a mut Rpub fn redirect_uri<P>(&mut self, redirect_uri: P) -> &mut Self where
P: Into<String>,
[src]
ⓘImportant traits for &'a mut R
pub fn redirect_uri<P>(&mut self, redirect_uri: P) -> &mut Self where
P: Into<String>,
pub fn build(&self) -> String
[src]
pub fn build(&self) -> String
Trait Implementations
impl Debug for AccessToken
[src]
impl Debug for AccessToken
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 PartialEq for AccessToken
[src]
impl PartialEq for AccessToken
fn eq(&self, other: &AccessToken) -> bool
[src]
fn eq(&self, other: &AccessToken) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &AccessToken) -> bool
[src]
fn ne(&self, other: &AccessToken) -> bool
This method tests for !=
.
Auto Trait Implementations
impl Send for AccessToken
impl Send for AccessToken
impl Sync for AccessToken
impl Sync for AccessToken