[][src]Trait gotham_restful::RequestBody

pub trait RequestBody: ResourceType + FromBody {
    fn supported_types() -> Option<Vec<Mime>> { ... }
}

A type that can be used inside a request body. Implemented for every type that is deserializable with serde. If the openapi feature is used, it must also be of type OpenapiType.

Provided methods

fn supported_types() -> Option<Vec<Mime>>

Return all types that are supported as content types.

Loading content...

Implementors

impl<T: ResourceType + DeserializeOwned> RequestBody for T[src]

Loading content...