pub enum OAuthErrorKind {
InvalidRequest,
InvalidClient,
InvalidGrant,
InvalidScope,
UnauthorizedClient,
UnsupportedGrantType,
}Expand description
The RFC 6749 error codes the token endpoint may return.
Variants§
InvalidRequest
A parameter is missing, unsupported or repeated.
InvalidClient
Client authentication failed.
InvalidGrant
The grant is invalid or expired.
InvalidScope
The requested scope is invalid.
The client may not use this grant type.
UnsupportedGrantType
The grant type is not recognised.
Trait Implementations§
Source§impl Clone for OAuthErrorKind
impl Clone for OAuthErrorKind
Source§fn clone(&self) -> OAuthErrorKind
fn clone(&self) -> OAuthErrorKind
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for OAuthErrorKind
Source§impl Debug for OAuthErrorKind
impl Debug for OAuthErrorKind
Source§impl<'de> Deserialize<'de> for OAuthErrorKind
impl<'de> Deserialize<'de> for OAuthErrorKind
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
impl Eq for OAuthErrorKind
Source§impl PartialEq for OAuthErrorKind
impl PartialEq for OAuthErrorKind
Source§impl Serialize for OAuthErrorKind
impl Serialize for OAuthErrorKind
impl StructuralPartialEq for OAuthErrorKind
Auto Trait Implementations§
impl Freeze for OAuthErrorKind
impl RefUnwindSafe for OAuthErrorKind
impl Send for OAuthErrorKind
impl Sync for OAuthErrorKind
impl Unpin for OAuthErrorKind
impl UnsafeUnpin for OAuthErrorKind
impl UnwindSafe for OAuthErrorKind
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
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.Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§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