pub fn query<T: DeserializeOwned + Send>() -> impl Filter<Extract = (T,), Error = Rejection> + Copy
Creates a Filter that decodes query parameters to the type T.
Filter
T
If cannot decode into a T, the request is rejected with a 400 Bad Request.
400 Bad Request