Struct poem_openapi::param::Query
source · [−]pub struct Query<T>(pub T);
Expand description
Represents the parameters passed by the query string.
Tuple Fields
0: T
Trait Implementations
The type of API extractor.
If it is true
, it means that this parameter is required.
type ParamType = T
type ParamType = T
The parameter type.
type ParamRawType = T::RawValueType
type ParamRawType = T::RawValueType
The raw parameter type for validators.
Returns the location of the parameter if this extractor is parameter.
Returns the schema of the parameter if this extractor is parameter.
Returns a reference to the raw type of this parameter.
fn from_request<'life0, 'async_trait>(
request: &'a Request,
_body: &'life0 mut RequestBody,
param_opts: ExtractParamOptions<Self::ParamType>
) -> Pin<Box<dyn Future<Output = Result<Self>> + Send + 'async_trait>> where
'a: 'async_trait,
'life0: 'async_trait,
Self: 'async_trait,
fn from_request<'life0, 'async_trait>(
request: &'a Request,
_body: &'life0 mut RequestBody,
param_opts: ExtractParamOptions<Self::ParamType>
) -> Pin<Box<dyn Future<Output = Result<Self>> + Send + 'async_trait>> where
'a: 'async_trait,
'life0: 'async_trait,
Self: 'async_trait,
Parse from the HTTP request.
Returns name of security scheme if this extractor is security scheme.
Returns MetaRequest
if this extractor is request object.
Auto Trait Implementations
impl<T> RefUnwindSafe for Query<T> where
T: RefUnwindSafe,
impl<T> UnwindSafe for Query<T> where
T: UnwindSafe,
Blanket Implementations
Mutably borrows from an owned value. Read more
pub fn vzip(self) -> V
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more