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

pub enum Error {
    Invalid(ErrorDescription),
    Unauthorized(ErrorDescriptionString),
    Primitive(Box<PrimitiveError>),
}
Expand description

Defines actions for the response to an access token request.

Variants

The token did not represent a valid token.

Tuple Fields of Invalid

0: ErrorDescription
Unauthorized(ErrorDescriptionString)

The client did not properly authorize itself.

Tuple Fields of Unauthorized

0: ErrorDescription1: String
Primitive(Box<PrimitiveError>)

An underlying primitive operation did not complete successfully.

This is expected to occur with some endpoints. See PrimitiveError for more details on when this is returned.

Tuple Fields of Primitive

0: Box<PrimitiveError>

Implementations

Create invalid error type

Create unauthorized error type

Get a handle to the description the client will receive.

Some types of this error don’t return any description which is represented by a None result.

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. 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.