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

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

Represents parameters of an error in an Authorization Error Response.

Implementations

Set the error type

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. To this end the pairs appear as part of a form urlencoded query component in the Location header of a server 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 AuthorizationError 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.