Struct bodyparser::Json [] [src]

pub struct Json;

Json is a plugin to parse a request body into JSON. Uses Raw plugin to parse the body with limit.

Trait Implementations

impl Clone for Json
[src]

fn clone(&self) -> Json

Returns a copy of the value. Read more

fn clone_from(&mut self, source: &Self)
1.0.0

Performs copy-assignment from source. Read more

impl Key for Json
[src]

type Value = Option<Value>

The value type associated with this key type.

impl<'a, 'b> Plugin<Request<'a, 'b>> for Json
[src]

type Error = BodyError

The error type associated with this plugin.

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

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