Trait rocket_okapi_fork::request::OpenApiFromFormField[][src]

pub trait OpenApiFromFormField<'r>: FromForm<'r> {
    fn form_parameter(
        gen: &mut OpenApiGenerator,
        name: String,
        required: bool
    ) -> Result<Parameter>; }
Expand description

This trait means that the implementer can be used as a FromFormField request guard, and that this can also be documented.

Required methods

Return a RequestBody containing the information required to document the FromFormField for implementer.

Implementations on Foreign Types

Implementors