[][src]Trait rweb::FromRequest

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

    fn is_body() -> bool { ... }
fn is_optional() -> bool { ... }
fn is_query() -> bool { ... } }

Associated Types

type Filter: Filter<Error = Rejection>

Extract should be (Self,),

Loading content...

Required methods

fn new() -> Self::Filter

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>.

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]

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]

Loading content...