[][src]Enum oauth2::basic::BasicErrorResponseType

pub enum BasicErrorResponseType {
    InvalidClient,
    InvalidGrant,
    InvalidRequest,
    InvalidScope,
    UnauthorizedClient,
    UnsupportedGrantType,
    Extension(String),
}

Basic access token error types.

These error types are defined in Section 5.2 of RFC 6749.

Variants

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.

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.

InvalidScope

The requested scope is invalid, unknown, malformed, or exceeds the scope granted by the resource owner.

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.

Extension(String)

An extension not defined by RFC 6749.

Trait Implementations

impl AsRef<str> for BasicErrorResponseType[src]

impl Clone for BasicErrorResponseType[src]

impl Debug for BasicErrorResponseType[src]

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

impl Display for BasicErrorResponseType[src]

impl ErrorResponseType for BasicErrorResponseType[src]

impl PartialEq<BasicErrorResponseType> for BasicErrorResponseType[src]

impl Serialize for BasicErrorResponseType[src]

impl StructuralPartialEq for BasicErrorResponseType[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: for<'de> Deserialize<'de>, 
[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<T, U> TryInto<U> for T where
    U: TryFrom<T>, 

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

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