Struct oxide_auth::code_grant::authorization::ErrorUrl[][src]

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

Encapsulates a redirect to a valid redirect_uri with an error response. The implementation makes it possible to alter the contained error, for example to provide additional optional information. The error type should not be altered by the frontend but the specificalities of this should be enforced by the frontend instead.

Implementations

Construct a new error, already fixing the state parameter if it exists.

Construct a new error with a request to provide state and an error type

Get a handle to the description the client will receive.

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Finalize the error url by saving its parameters in the query part of the redirect_uri

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.