[][src]Trait rweb::FromRequest

pub trait FromRequest: Sized {
    type Filter: Filter<Error = Rejection>;
    pub fn new() -> Self::Filter;

    pub fn is_body() -> bool { ... }
pub fn is_optional() -> bool { ... }
pub fn is_query() -> bool { ... }
pub fn content_type() -> &'static str { ... } }

Associated Types

type Filter: Filter<Error = Rejection>[src]

Extract should be (Self,),

Loading content...

Required methods

pub fn new() -> Self::Filter[src]

Loading content...

Provided methods

pub fn is_body() -> bool[src]

It's true iff the type represents whole request body.

It returns true for Json<T> and Form<T>.

pub fn is_optional() -> bool[src]

It's true if the type is optional.

It returns true for Option<T>.

pub fn is_query() -> bool[src]

It's true iff the type represents whole request query.

It returns true for Query<T>.

pub fn content_type() -> &'static str[src]

Loading content...

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]

type Filter = BoxedFilter<(Option<T>,)>

Loading content...

Implementors

impl FromRequest for FormData[src]

type Filter = BoxedFilter<(Self,)>

impl FromRequest for Ws[src]

type Filter = BoxedFilter<(Ws,)>

impl<T> FromRequest for Form<T> where
    T: 'static + Send + DeserializeOwned
[src]

type Filter = BoxedFilter<(Form<T>,)>

impl<T> FromRequest for Json<T> where
    T: 'static + Send + DeserializeOwned
[src]

type Filter = BoxedFilter<(Json<T>,)>

impl<T> FromRequest for Query<T> where
    T: 'static + Send + DeserializeOwned
[src]

type Filter = BoxedFilter<(Query<T>,)>

Loading content...