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
Required methods
Provided methods
It’s true iff the type represents whole request body.
It returns true for Json<T>
and Form<T>
.
fn is_optional() -> bool
fn is_optional() -> bool
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>
.