pub struct OAuth2Error {
pub code: OAuth2ErrorCode,
pub description: Option<String>,
pub uri: Option<String>,
}
Expand description
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§
Source§impl Clone for OAuth2Error
impl Clone for OAuth2Error
Source§fn clone(&self) -> OAuth2Error
fn clone(&self) -> OAuth2Error
Returns a duplicate of the value. Read more
1.0.0 · Source§const fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for OAuth2Error
impl Debug for OAuth2Error
Source§impl Display for OAuth2Error
impl Display for OAuth2Error
Source§impl Error for OAuth2Error
impl Error for OAuth2Error
Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
Source§impl From<OAuth2Error> for ClientError
impl From<OAuth2Error> for ClientError
Source§fn from(err: OAuth2Error) -> Self
fn from(err: OAuth2Error) -> Self
Converts to this type from the input type.
Source§impl FromResponse for OAuth2Error
impl FromResponse for OAuth2Error
Source§fn from_response(json: &Value) -> Result<Self, ParseError>
fn from_response(json: &Value) -> Result<Self, ParseError>
Parse a JSON response.
Source§fn from_response_inherit(json: &Value, prev: &Self) -> Result<Self, ParseError>
fn from_response_inherit(json: &Value, prev: &Self) -> Result<Self, ParseError>
Parse a JSON response, inheriting missing values from the previous instance. Read more
Source§impl PartialEq for OAuth2Error
impl PartialEq for OAuth2Error
impl Eq for OAuth2Error
impl StructuralPartialEq for OAuth2Error
Auto Trait Implementations§
impl Freeze for OAuth2Error
impl RefUnwindSafe for OAuth2Error
impl Send for OAuth2Error
impl Sync for OAuth2Error
impl Unpin for OAuth2Error
impl UnwindSafe for OAuth2Error
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.Source§impl<E> Fail for E
impl<E> Fail for E
Source§fn cause(&self) -> Option<&(dyn Fail + 'static)>
fn cause(&self) -> Option<&(dyn Fail + 'static)>
Returns a reference to the underlying cause of this failure, if it
is an error that wraps other errors. Read more
Source§fn backtrace(&self) -> Option<&Backtrace>
fn backtrace(&self) -> Option<&Backtrace>
Returns a reference to the
Backtrace
carried by this failure, if it
carries one. Read moreSource§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more