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

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

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.

Implementations

Convert the guard error into the content used in an WWW-Authenticate header.

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

Should always be Self

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

🔬 This is a nightly-only experimental API. (toowned_clone_into)

recently added

Uses borrowed data to replace owned data, usually by cloning. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.