pub struct Query<T>(pub T);
Available on crate feature
html-form
only.Tuple Fields§
§0: T
Trait Implementations§
Source§impl<T> FromRequestParts for Query<T>where
T: DeserializeOwned + Send,
impl<T> FromRequestParts for Query<T>where
T: DeserializeOwned + Send,
Source§type Rejection = Infallible
type Rejection = Infallible
If the extractor fails it’ll use this “rejection” type. A rejection is
a kind of error that can be converted into a response.
Source§fn from_request_parts(
parts: &mut RequestParts,
) -> impl Future<Output = Result<Self, Self::Rejection>> + Send
fn from_request_parts( parts: &mut RequestParts, ) -> impl Future<Output = Result<Self, Self::Rejection>> + Send
Perform the extraction.
impl<T: Copy> Copy for Query<T>
Auto Trait Implementations§
impl<T> Freeze for Query<T>where
T: Freeze,
impl<T> RefUnwindSafe for Query<T>where
T: RefUnwindSafe,
impl<T> Send for Query<T>where
T: Send,
impl<T> Sync for Query<T>where
T: Sync,
impl<T> Unpin for Query<T>where
T: Unpin,
impl<T> UnwindSafe for Query<T>where
T: UnwindSafe,
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<B, T> FromRequest<B, ViaParts> for Twhere
B: Send,
T: FromRequestParts,
impl<B, T> FromRequest<B, ViaParts> for Twhere
B: Send,
T: FromRequestParts,
Source§type Rejection = <T as FromRequestParts>::Rejection
type Rejection = <T as FromRequestParts>::Rejection
If the extractor fails it’ll use this “rejection” type. A rejection is
a kind of error that can be converted into a response.
Source§fn from_request(
req: Request<B>,
) -> impl Future<Output = Result<T, <T as FromRequest<B, ViaParts>>::Rejection>> + Send
fn from_request( req: Request<B>, ) -> impl Future<Output = Result<T, <T as FromRequest<B, ViaParts>>::Rejection>> + Send
Perform the extraction.