query

Function query 

Source
pub fn query<T>() -> impl Filter + Copy
where T: DeserializeOwned + Send + 'static,
Expand description

Creates a Filter that decodes query parameters to the type T.

If cannot decode into a T, the request is rejected with a 400 Bad Request.