Struct inth_oauth2::error::OAuth2Error [] [src]

pub struct OAuth2Error {
    pub code: OAuth2ErrorCode,
    pub description: Option<String>,
    pub uri: Option<String>,
}

OAuth 2.0 error.

See RFC 6749, section 5.2.

Fields

code

Error code.

description

Human-readable text providing additional information about the error.

uri

A URI identifying a human-readable web page with information about the error.

Trait Implementations

impl Display for OAuth2Error

fn fmt(&self, f: &mut Formatter) -> Result<(), Error>

impl Error for OAuth2Error

fn description(&self) -> &str

1.0.0fn cause(&self) -> Option<&Error>

impl FromResponse for OAuth2Error

fn from_response(json: &Json) -> Result<Self, ParseError>

fn from_response_inherit(json: &Json, prev: &Self) -> Result<Self, ParseError>

Derived Implementations

impl Eq for OAuth2Error

impl PartialEq for OAuth2Error

fn eq(&self, __arg_0: &OAuth2Error) -> bool

fn ne(&self, __arg_0: &OAuth2Error) -> bool

impl Clone for OAuth2Error

fn clone(&self) -> OAuth2Error

1.0.0fn clone_from(&mut self, source: &Self)

impl Debug for OAuth2Error

fn fmt(&self, __arg_0: &mut Formatter) -> Result