Crate reep_bodyparser_rustcdecodable

Source
Expand description

A generic implementation of reep::types::BodyParser using the serde Deserialize interface from the iron bodyparser core bundle plugin

§Schematic Example

let body_parser = SerdBodyParser::<DeserializeStructImplRessource>::new();
let ep = ResourceEndpointBuilder::new(option_parser, body_parser)
    .create(aHandler)
    /*...*/
    .finalize();
app.mount("/users", ep)

Structs§

  • error to used if ther is a body expected but non provided in the request
  • A Gneric Body parser using the serde functionality (and Json serialisation)