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

Trait Implementations

impl Debug for TokenError
[src]

[src]

Formats the value using the given formatter. Read more

impl PartialEq for TokenError
[src]

[src]

This method tests for self and other values to be equal, and is used by ==. Read more

[src]

This method tests for !=.

impl Display for TokenError
[src]

[src]

Formats the value using the given formatter. Read more

impl Error for TokenError
[src]

[src]

A short description of the error. Read more

1.0.0
[src]

The lower-level cause of this error, if any. Read more

Auto Trait Implementations

impl Send for TokenError

impl Sync for TokenError