Struct bodyparser::Struct [] [src]

pub struct Struct<T: Decodable> {
    // 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: Decodable + Any

type Value = Option<T>

impl<'a, 'b, T> Plugin<Request<'a, 'b>> for Struct<T> where T: Decodable + Any

type Error = BodyError

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