Enum oauth2::ErrorField
source · pub enum ErrorField {
InvalidRequest,
InvalidClient,
InvalidGrant,
UnauthorizedClient,
UnsupportedGrantType,
InvalidScope,
Other(String),
}
Expand description
These error types are defined in Section 5.2 of RFC 6749.
Variants§
InvalidRequest
The request is missing a required parameter, includes an unsupported parameter value (other than grant type), repeats a parameter, includes multiple credentials, utilizes more than one mechanism for authenticating the client, or is otherwise malformed.
InvalidClient
Client authentication failed (e.g., unknown client, no client authentication included, or unsupported authentication method).
InvalidGrant
The provided authorization grant (e.g., authorization code, resource owner credentials) or refresh token is invalid, expired, revoked, does not match the redirection URI used in the authorization request, or was issued to another client.
The authenticated client is not authorized to use this authorization grant type.
UnsupportedGrantType
The authorization grant type is not supported by the authorization server.
InvalidScope
The requested scope is invalid, unknown, malformed, or exceeds the scope granted by the resource owner.
Other(String)
Other error type.
Trait Implementations§
source§impl Clone for ErrorField
impl Clone for ErrorField
source§fn clone(&self) -> ErrorField
fn clone(&self) -> ErrorField
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for ErrorField
impl Debug for ErrorField
source§impl<'de> Deserialize<'de> for ErrorField
impl<'de> Deserialize<'de> for ErrorField
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>,
source§impl Display for ErrorField
impl Display for ErrorField
source§impl PartialEq for ErrorField
impl PartialEq for ErrorField
source§fn eq(&self, other: &ErrorField) -> bool
fn eq(&self, other: &ErrorField) -> bool
self
and other
values to be equal, and is used
by ==
.source§impl Serialize for ErrorField
impl Serialize for ErrorField
impl Eq for ErrorField
impl StructuralPartialEq for ErrorField
Auto Trait Implementations§
impl Freeze for ErrorField
impl RefUnwindSafe for ErrorField
impl Send for ErrorField
impl Sync for ErrorField
impl Unpin for ErrorField
impl UnwindSafe for ErrorField
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
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
key
and return true
if they are equal.