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.
Trait Implementations
Auto Trait Implementations
impl<B> !RefUnwindSafe for RequestParts<B>
impl<B> Send for RequestParts<B> where
B: Send,
impl<B> Sync for RequestParts<B> where
B: Sync,
impl<B> Unpin for RequestParts<B> where
B: Unpin,
impl<B> !UnwindSafe for RequestParts<B>
Blanket Implementations
Mutably borrows from an owned value. Read more
Instruments this type with the provided Span
, returning an
Instrumented
wrapper. Read more
Create a new Policy
that returns Action::Follow
only if self
and other
return
Action::Follow
. Read more
type Output = T
type Output = T
Should always be Self