Struct oauth2::TokenError
[−]
[src]
pub struct TokenError { pub error: ErrorType, pub error_description: Option<String>, pub error_uri: Option<String>, pub state: Option<String>, }
An error that occured after a failed authorization process.
The same structure is returned both for OAuth2 specific errors, but also for parsing/transport errors.
The latter can be differentiated by looking for the ErrorType::Other
variant.
See https://tools.ietf.org/html/rfc6749#section-4.2.2.1
Fields
error: ErrorType
error_description: Option<String>
error_uri: Option<String>
state: Option<String>
Trait Implementations
impl Debug for TokenError
[src]
fn fmt(&self, __arg_0: &mut Formatter) -> Result
[src]
Formats the value using the given formatter. Read more
impl PartialEq for TokenError
[src]
fn eq(&self, __arg_0: &TokenError) -> bool
[src]
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &TokenError) -> bool
[src]
This method tests for !=
.
impl Display for TokenError
[src]
fn fmt(&self, f: &mut Formatter) -> Result<(), FormatterError>
[src]
Formats the value using the given formatter. Read more