Struct inth_oauth2::error::OAuth2Error
[−]
[src]
pub struct OAuth2Error { pub code: OAuth2ErrorCode, pub description: Option<String>, pub uri: Option<String>, }
OAuth 2.0 error.
Fields
code: OAuth2ErrorCode
Error code.
description: Option<String>
Human-readable text providing additional information about the error.
uri: Option<String>
A URI identifying a human-readable web page with information about the error.
Trait Implementations
impl Debug for OAuth2Error
[src]
impl Clone for OAuth2Error
[src]
fn clone(&self) -> OAuth2Error
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0
Performs copy-assignment from source
. Read more
impl PartialEq for OAuth2Error
[src]
fn eq(&self, __arg_0: &OAuth2Error) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &OAuth2Error) -> bool
This method tests for !=
.
impl Eq for OAuth2Error
[src]
impl Display for OAuth2Error
[src]
impl Error for OAuth2Error
[src]
fn description(&self) -> &str
A short description of the error. Read more
fn cause(&self) -> Option<&Error>
1.0.0
The lower-level cause of this error, if any. Read more
impl FromResponse for OAuth2Error
[src]
fn from_response(json: &Json) -> Result<Self, ParseError>
Parse a JSON response.
fn from_response_inherit(json: &Json, prev: &Self) -> Result<Self, ParseError>
Parse a JSON response, inheriting missing values from the previous instance. Read more