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

The error type which will be returned from from_data.

Required Methods

Performs conversion from raw bytes into itself.

Provided Methods

Returns whether the incoming request matches to this type or not.

Implementations on Foreign Types

impl FromBody for Bytes
[src]

[src]

[src]

impl FromBody for String
[src]

[src]

[src]

Implementors