Trait rweb::FromRequest[][src]

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 { ... }
fn content_type() -> &'static str { ... } }

Associated Types

Extract should be (Self,),

Required methods

Provided methods

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

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

It’s true if the type is optional.

It returns true for Option<T>.

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

It returns true for Query<T>.

Implementations on Foreign Types

Implementors