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

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

Return all types that are supported as content types.

Implementors