Struct reep_bodyparser_rustcdecodable::SerdeBodyParser [] [src]

pub struct SerdeBodyParser<R: Resource + Deserialize> { /* fields omitted */ }

A Gneric Body parser using the serde functionality (and Json serialisation)

Methods

impl<R: Deserialize> SerdeBodyParser<R> where
    R: Resource + Send + Sync + Any
[src]

create a new parser

Trait Implementations

impl<R: Deserialize> Key for SerdeBodyParser<R> where
    R: Resource + Send + Sync + Any
[src]

The value type associated with this key type.

impl<R: Deserialize> ParserMiddleware for SerdeBodyParser<R> where
    R: Resource + Send + Sync + Any
[src]

called befor handing a endpoint with a Body/Options not that the id in the url is expected to be percent_encoded and will be decoded to utf-8 before being passed to parse. Illegal UTF-8 encodings will be replaced with U+FFFD (see url::percent_encoding::lossy_utf8_percent_decode) NOTE: in future version lossy decoding might be replaced with a more strict decoding Never relay on the fact thats lossy decoded Read more

impl<R: Deserialize> BodyParser<R> for SerdeBodyParser<R> where
    R: Resource + Send + Sync + Any
[src]