Trait rocket_okapi::request::OpenApiFromForm
source · [−]pub trait OpenApiFromForm<'r>: FromForm<'r> {
fn form_multi_parameter(
gen: &mut OpenApiGenerator,
name: String,
required: bool
) -> Result<Vec<Parameter>>;
}
Expand description
This trait is used to document multiple query guard segments that implement
FromForm
.
For example ?<param>
in the route’s query part.
Required Methods
fn form_multi_parameter(
gen: &mut OpenApiGenerator,
name: String,
required: bool
) -> Result<Vec<Parameter>>
fn form_multi_parameter(
gen: &mut OpenApiGenerator,
name: String,
required: bool
) -> Result<Vec<Parameter>>
Return a Vec<Parameter>
containing the information required to document the
FromForm
route’s query part.