[][src]Enum oauth2::ErrorField

pub enum ErrorField {
    InvalidRequest,
    InvalidClient,
    InvalidGrant,
    UnauthorizedClient,
    UnsupportedGrantType,
    InvalidScope,
    Other(String),
}

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.

UnauthorizedClient

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

impl Clone for ErrorField[src]

impl Debug for ErrorField[src]

impl<'de> Deserialize<'de> for ErrorField[src]

impl Display for ErrorField[src]

impl Eq for ErrorField[src]

impl PartialEq<ErrorField> for ErrorField[src]

impl Serialize for ErrorField[src]

impl StructuralEq for ErrorField[src]

impl StructuralPartialEq for ErrorField[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> DeserializeOwned for T where
    T: Deserialize<'de>, 
[src]

impl<Q, K> Equivalent<K> for Q where
    K: Borrow<Q> + ?Sized,
    Q: Eq + ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T> ToString for T where
    T: Display + ?Sized
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,