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 copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
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§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.