pub struct QsQuery<T>(pub T);Expand description
Extract typed information from the request’s form data.
Defaults to deserializing using querystring encoding.
Tuple Fields§
§0: TImplementations§
Source§impl<T> QsQuery<T>
impl<T> QsQuery<T>
Sourcepub fn into_inner(self) -> T
pub fn into_inner(self) -> T
Unwrap into inner T value
Trait Implementations§
impl<T: Eq> Eq for QsQuery<T>
Source§impl<T> FromRequest for QsQuery<T>where
T: DeserializeOwned,
impl<T> FromRequest for QsQuery<T>where
T: DeserializeOwned,
Source§fn from_request(req: &HttpRequest, _: &mut Payload) -> Self::Future
fn from_request(req: &HttpRequest, _: &mut Payload) -> Self::Future
Create a
Self from request parts asynchronously.Source§impl<T, S> FromRequestParts<S> for QsQuery<T>
impl<T, S> FromRequestParts<S> for QsQuery<T>
Source§impl<T: Ord> Ord for QsQuery<T>
impl<T: Ord> Ord for QsQuery<T>
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl<T: PartialOrd> PartialOrd for QsQuery<T>
impl<T: PartialOrd> PartialOrd for QsQuery<T>
impl<T: PartialEq> StructuralPartialEq for QsQuery<T>
Auto Trait Implementations§
impl<T> Freeze for QsQuery<T>where
T: Freeze,
impl<T> RefUnwindSafe for QsQuery<T>where
T: RefUnwindSafe,
impl<T> Send for QsQuery<T>where
T: Send,
impl<T> Sync for QsQuery<T>where
T: Sync,
impl<T> Unpin for QsQuery<T>where
T: Unpin,
impl<T> UnsafeUnpin for QsQuery<T>where
T: UnsafeUnpin,
impl<T> UnwindSafe for QsQuery<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,
impl<T> Formattable for T
Source§impl<S, T> FromRequest<S, ViaParts> for T
impl<S, T> FromRequest<S, ViaParts> for T
Source§type Rejection = <T as FromRequestParts<S>>::Rejection
type Rejection = <T as FromRequestParts<S>>::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<Body>,
state: &S,
) -> impl Future<Output = Result<T, <T as FromRequest<S, ViaParts>>::Rejection>>
fn from_request( req: Request<Body>, state: &S, ) -> impl Future<Output = Result<T, <T as FromRequest<S, ViaParts>>::Rejection>>
Perform the extraction.