Crate reep_bodyparser_rustcdecodable [−] [src]
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
EmptyBodyError |
error to used if ther is a body expected but non provided in the request |
SerdeBodyParser |
A Gneric Body parser using the serde functionality (and Json serialisation) |