Struct bodyparser::Struct [] [src]

pub struct Struct<T: Deserialize> {
    // some fields omitted
}

Struct is a plugin to parse a request body into a struct. Uses Raw plugin to parse the body with limit.

Trait Implementations

impl<T> Key for Struct<T> where T: Deserialize + Any
[src]

type Value = Option<T>

The value type associated with this key type.

impl<'a, 'b, T> Plugin<Request<'a, 'b>> for Struct<T> where T: Deserialize + Any
[src]

type Error = BodyError

The error type associated with this plugin.

fn eval(req: &mut Request) -> Result<Option<T>, BodyError>

Create the plugin from an instance of the extended type. Read more