Struct yup_oauth2::error::AuthError
source · pub struct AuthError {
pub error: AuthErrorCode,
pub error_description: Option<String>,
pub error_uri: Option<String>,
}
Expand description
Error returned by the authorization server.
https://tools.ietf.org/html/rfc6749#section-5.2 https://tools.ietf.org/html/rfc8628#section-3.5
Fields§
§error: AuthErrorCode
Error code from the server.
error_description: Option<String>
Human-readable text providing additional information.
error_uri: Option<String>
A URI identifying a human-readable web page with information about the error.
Trait Implementations§
source§impl<'de> Deserialize<'de> for AuthError
impl<'de> Deserialize<'de> for AuthError
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl Error for AuthError
impl Error for AuthError
1.30.0 · source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
The lower-level source of this error, if any. Read more
1.0.0 · source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
source§impl PartialEq for AuthError
impl PartialEq for AuthError
impl Eq for AuthError
impl StructuralPartialEq for AuthError
Auto Trait Implementations§
impl Freeze for AuthError
impl RefUnwindSafe for AuthError
impl Send for AuthError
impl Sync for AuthError
impl Unpin for AuthError
impl UnwindSafe for AuthError
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<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.