Trait finchers_http::body::FromBody
[−]
[src]
pub trait FromBody: 'static + Sized { type Error; fn from_body(body: Bytes, input: &Input) -> Result<Self, Self::Error>; fn is_match(input: &Input) -> bool { ... } }
Trait representing the transformation from a message body.
Associated Types
type Error
The error type which will be returned from from_data
.
Required Methods
fn from_body(body: Bytes, input: &Input) -> Result<Self, Self::Error>
Performs conversion from raw bytes into itself.
Provided Methods
Implementations on Foreign Types
impl FromBody for Bytes
[src]
impl FromBody for String
[src]
Implementors
impl<T> FromBody for Json<T> where
T: DeserializeOwned + 'static, type Error = JsonParseError;impl<F> FromBody for Form<F> where
F: FromQuery + 'static, type Error = QueryError<F::Error>;