pub struct OAuthRequest { /* private fields */ }
Expand description

Type implementing WebRequest as well as FromRequest for use in route handlers

This type consumes the body of the HttpRequest upon extraction, so be careful not to use it in places you also expect an application payload

Implementations

Create a new OAuthRequest from an HttpRequest and Payload

Fetch the authorization header from the request

Fetch the query for this request

Fetch the query mutably

Fetch the body of the request

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

Performs the conversion.

The associated error which can be returned.

Future that resolves to a Self.

Create a Self from request parts asynchronously.

Create a Self from request head asynchronously. Read more

The error generated from access of malformed or invalid requests.

The corresponding type of Responses returned from this module.

Retrieve a parsed version of the url query. Read more

Retrieve the parsed application/x-form-urlencoded body of the request. Read more

Contents of the authorization header or none if none exists. An Err value indicates a malformed header or request. 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

Returns the argument unchanged.

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more

Instruments this type with the current Span, returning an Instrumented wrapper. Read more

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

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)

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.

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more