pub struct Query<QueryType: DeserializeOwned + JsonSchema + Send + Sync> { /* private fields */ }
Expand description
Query<QueryType>
is an extractor used to deserialize an instance of
QueryType
from an HTTP request’s query string. QueryType
is any
structure of yours that implements serde::Deserialize
. See this module’s
documentation for more information.
Implementations§
source§impl<QueryType: DeserializeOwned + JsonSchema + Send + Sync> Query<QueryType>
impl<QueryType: DeserializeOwned + JsonSchema + Send + Sync> Query<QueryType>
pub fn into_inner(self) -> QueryType
Trait Implementations§
source§impl<QueryType: Debug + DeserializeOwned + JsonSchema + Send + Sync> Debug for Query<QueryType>
impl<QueryType: Debug + DeserializeOwned + JsonSchema + Send + Sync> Debug for Query<QueryType>
source§fn from_request<'life0, 'async_trait, Context>(
rqctx: &'life0 RequestContext<Context>
) -> Pin<Box<dyn Future<Output = Result<Query<QueryType>, HttpError>> + Send + 'async_trait>>where
Context: 'async_trait + ServerContext,
'life0: 'async_trait,
fn from_request<'life0, 'async_trait, Context>(
rqctx: &'life0 RequestContext<Context>
) -> Pin<Box<dyn Future<Output = Result<Query<QueryType>, HttpError>> + Send + 'async_trait>>where
Context: 'async_trait + ServerContext,
'life0: 'async_trait,
Construct an instance of this type from a
RequestContext
.fn metadata(_body_content_type: ApiEndpointBodyContentType) -> ExtractorMetadata
Auto Trait Implementations§
impl<QueryType> RefUnwindSafe for Query<QueryType>where
QueryType: RefUnwindSafe,
impl<QueryType> Send for Query<QueryType>
impl<QueryType> Sync for Query<QueryType>
impl<QueryType> Unpin for Query<QueryType>where
QueryType: Unpin,
impl<QueryType> UnwindSafe for Query<QueryType>where
QueryType: 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<S> ExclusiveExtractor for Swhere
S: SharedExtractor,
impl<S> ExclusiveExtractor for Swhere
S: SharedExtractor,
source§fn from_request<'life0, 'async_trait, Context>(
rqctx: &'life0 RequestContext<Context>,
_request: Request<Body>
) -> Pin<Box<dyn Future<Output = Result<S, HttpError>> + Send + 'async_trait>>where
'life0: 'async_trait,
Context: 'async_trait + ServerContext,
S: 'async_trait,
fn from_request<'life0, 'async_trait, Context>(
rqctx: &'life0 RequestContext<Context>,
_request: Request<Body>
) -> Pin<Box<dyn Future<Output = Result<S, HttpError>> + Send + 'async_trait>>where
'life0: 'async_trait,
Context: 'async_trait + ServerContext,
S: 'async_trait,
Construct an instance of this type from a
RequestContext
.