[][src]Enum oxide_auth::code_grant::resource::Error

pub enum Error {
    AccessDenied {
        failure: AccessFailure,
        authenticate: Authenticate,
    },
    NoAuthentication {
        authenticate: Authenticate,
    },
    InvalidRequest {
        authenticate: Authenticate,
    },
    PrimitiveError,
}

An error signalling the resource access was not permitted.

Variants

AccessDenied

The client tried to access a resource but was not able to.

Fields of AccessDenied

failure: AccessFailure

A specific cause for denying access.

authenticate: Authenticate

Information for the Authenticate header in the error response.

NoAuthentication

The client did not provide any bearer authentication.

Fields of NoAuthentication

authenticate: Authenticate

Information for the Authenticate header in the error response.

InvalidRequest

The request itself was malformed.

Fields of InvalidRequest

authenticate: Authenticate

Information for the Authenticate header in the error response.

PrimitiveError

Some part of the endpoint failed, defer to endpoint for handling.

Trait Implementations

impl Debug for Error[src]

Auto Trait Implementations

impl Unpin for Error

impl Send for Error

impl Sync for Error

impl RefUnwindSafe for Error

impl UnwindSafe for Error

Blanket Implementations

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

impl<T, U> Into<U> for T where
    U: From<T>, 
[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> BorrowMut<T> for T where
    T: ?Sized
[src]

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

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

impl<T> Erased for T

impl<T> Typeable for T where
    T: Any

fn get_type(&self) -> TypeId

Get the TypeId of this object.

impl<T> DebugAny for T where
    T: Any + Debug

impl<T> UnsafeAny for T where
    T: Any

impl<T> IntoCollection<T> for T

impl<T, I> AsResult<T, I> for T where
    I: Input,