[−][src]Trait rocket_okapi::request::OpenApiFromQuery
This trait means that the implementer can be used as a FromQuery
request guard, and that this
can also be documented.
Required methods
fn query_multi_parameter(
gen: &mut OpenApiGenerator,
name: String,
required: bool
) -> Result<Vec<Parameter>>
gen: &mut OpenApiGenerator,
name: String,
required: bool
) -> Result<Vec<Parameter>>
Return a RequestBody
containing the information required to document the FromQuery
for
implementer.
Implementations on Foreign Types
impl<'r, T: OpenApiFromQuery<'r>> OpenApiFromQuery<'r> for StdResult<T, T::Error>
[src]
fn query_multi_parameter(
gen: &mut OpenApiGenerator,
name: String,
_required: bool
) -> Result<Vec<Parameter>>
[src]
gen: &mut OpenApiGenerator,
name: String,
_required: bool
) -> Result<Vec<Parameter>>
impl<'r, T: OpenApiFromQuery<'r>> OpenApiFromQuery<'r> for Option<T>
[src]
fn query_multi_parameter(
gen: &mut OpenApiGenerator,
name: String,
_required: bool
) -> Result<Vec<Parameter>>
[src]
gen: &mut OpenApiGenerator,
name: String,
_required: bool
) -> Result<Vec<Parameter>>
impl<'r, T> OpenApiFromQuery<'r> for Form<T> where
T: FromForm<'r> + JsonSchema,
[src]
T: FromForm<'r> + JsonSchema,
fn query_multi_parameter(
gen: &mut OpenApiGenerator,
name: String,
required: bool
) -> Result<Vec<Parameter>>
[src]
gen: &mut OpenApiGenerator,
name: String,
required: bool
) -> Result<Vec<Parameter>>
impl<'r, T> OpenApiFromQuery<'r> for LenientForm<T> where
T: FromForm<'r> + JsonSchema,
[src]
T: FromForm<'r> + JsonSchema,
fn query_multi_parameter(
gen: &mut OpenApiGenerator,
name: String,
required: bool
) -> Result<Vec<Parameter>>
[src]
gen: &mut OpenApiGenerator,
name: String,
required: bool
) -> Result<Vec<Parameter>>