Struct axum::extract::RequestParts[][src]

pub struct RequestParts<B> { /* fields omitted */ }
Expand description

The type used with FromRequest to extract data from requests.

Has several convenience methods for getting owned parts of the request.

Implementations

Gets a reference to the request method.

Returns None if the method has been taken by another extractor.

Gets a mutable reference to the request method.

Returns None if the method has been taken by another extractor.

Takes the method out of the request, leaving a None in its place.

Gets a reference to the request URI.

Returns None if the URI has been taken by another extractor.

Gets a mutable reference to the request URI.

Returns None if the URI has been taken by another extractor.

Takes the URI out of the request, leaving a None in its place.

Gets a reference to the request HTTP version.

Returns None if the HTTP version has been taken by another extractor.

Gets a mutable reference to the request HTTP version.

Returns None if the HTTP version has been taken by another extractor.

Takes the HTTP version out of the request, leaving a None in its place.

Gets a reference to the request headers.

Returns None if the headers has been taken by another extractor.

Gets a mutable reference to the request headers.

Returns None if the headers has been taken by another extractor.

Takes the headers out of the request, leaving a None in its place.

Gets a reference to the request extensions.

Returns None if the extensions has been taken by another extractor.

Gets a mutable reference to the request extensions.

Returns None if the extensions has been taken by another extractor.

Takes the extensions out of the request, leaving a None in its place.

Gets a reference to the request body.

Returns None if the body has been taken by another extractor.

Gets a mutable reference to the request body.

Returns None if the body has been taken by another extractor.

Takes the body out of the request, leaving a None in its place.

Trait Implementations

Formats the value using the given formatter. 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.

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

Performs the conversion.

Create a new Policy that returns Action::Follow only if self and other return Action::Follow. Read more

Create a new Policy that returns Action::Follow if either self or other returns Action::Follow. Read more

Should always be Self

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.