Struct oxide_auth::code_grant::error::AccessTokenError[][src]

pub struct AccessTokenError { /* fields omitted */ }
Expand description

Represents parameters of an error in an Issuing Error Response.

This is used for both access token requests, and token refresh requests as they use the same internal error representations in the RFC as well.

Implementations

Get the formal kind of error.

This can not currently be changed as to uphold the inner invariants for RFC compliance.

Provide a short text explanation for the error.

A uri identifying a resource explaining the error in detail.

Iterate over the key value pairs that describe this error.

These pairs must be added to the detailed description of an error. The pairs will be encoded in the json body of the Bad Request response.

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

Construct a AccessTokenError with no extra information.

Will produce a generic InvalidRequest error without any description or error uri which would provide additional information for the client.

The error as key-value pairs.

The type of the elements being iterated over.

Which kind of iterator are we turning this into?

Creates an iterator from a value. Read more

The type of the elements being iterated over.

Which kind of iterator are we turning this into?

Creates an iterator from a value. 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.