Trait gotham_restful::RequestBody
source · [−]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
fn supported_types() -> Option<Vec<Mime>>
fn supported_types() -> Option<Vec<Mime>>
Return all types that are supported as content types.