[−][src]Trait rweb::FromRequest
Associated Types
Loading content...Required methods
Loading content...Provided methods
fn is_body() -> bool
It's true iff the type represents whole request body.
It returns true for Json<T>
and Form<T>
.
fn is_optional() -> bool
It's true if the type is optional.
It returns true for Option<T>
.
fn is_query() -> bool
It's true iff the type represents whole request query.
It returns true for Query<T>
.
fn content_type() -> &'static str
Implementations on Foreign Types
impl<T> FromRequest for Option<T> where
T: 'static + FromRequest + Send,
T::Filter: Send + Sync + Filter<Extract = (T,), Error = Rejection>,
[src]
T: 'static + FromRequest + Send,
T::Filter: Send + Sync + Filter<Extract = (T,), Error = Rejection>,
type Filter = BoxedFilter<(Option<T>,)>
fn is_body() -> bool
[src]
fn is_optional() -> bool
[src]
fn is_query() -> bool
[src]
fn new() -> Self::Filter
[src]
Implementors
impl FromRequest for FormData
[src]
impl FromRequest for Ws
[src]
impl<T> FromRequest for Form<T> where
T: 'static + Send + DeserializeOwned,
[src]
T: 'static + Send + DeserializeOwned,
type Filter = BoxedFilter<(Form<T>,)>
fn is_body() -> bool
[src]
fn content_type() -> &'static str
[src]
fn new() -> Self::Filter
[src]
impl<T> FromRequest for Json<T> where
T: 'static + Send + DeserializeOwned,
[src]
T: 'static + Send + DeserializeOwned,
type Filter = BoxedFilter<(Json<T>,)>
fn is_body() -> bool
[src]
fn content_type() -> &'static str
[src]
fn new() -> Self::Filter
[src]
impl<T> FromRequest for Query<T> where
T: 'static + Send + DeserializeOwned,
[src]
T: 'static + Send + DeserializeOwned,