[−][src]Trait rocket_okapi::request::OpenApiFromFormValue
This trait means that the implementer can be used as a FromFormValue
request guard, and that
this can also be documented.
Required methods
fn query_parameter(
gen: &mut OpenApiGenerator,
name: String,
required: bool
) -> Result<Parameter>
gen: &mut OpenApiGenerator,
name: String,
required: bool
) -> Result<Parameter>
Return a RequestBody
containing the information required to document the FromFormValue
for implementer.
Implementations on Foreign Types
impl<'r> OpenApiFromFormValue<'r> for f32
[src]
fn query_parameter(
gen: &mut OpenApiGenerator,
name: String,
required: bool
) -> Result<Parameter>
[src]
gen: &mut OpenApiGenerator,
name: String,
required: bool
) -> Result<Parameter>
impl<'r> OpenApiFromFormValue<'r> for f64
[src]
fn query_parameter(
gen: &mut OpenApiGenerator,
name: String,
required: bool
) -> Result<Parameter>
[src]
gen: &mut OpenApiGenerator,
name: String,
required: bool
) -> Result<Parameter>
impl<'r> OpenApiFromFormValue<'r> for isize
[src]
fn query_parameter(
gen: &mut OpenApiGenerator,
name: String,
required: bool
) -> Result<Parameter>
[src]
gen: &mut OpenApiGenerator,
name: String,
required: bool
) -> Result<Parameter>
impl<'r> OpenApiFromFormValue<'r> for i8
[src]
fn query_parameter(
gen: &mut OpenApiGenerator,
name: String,
required: bool
) -> Result<Parameter>
[src]
gen: &mut OpenApiGenerator,
name: String,
required: bool
) -> Result<Parameter>
impl<'r> OpenApiFromFormValue<'r> for i16
[src]
fn query_parameter(
gen: &mut OpenApiGenerator,
name: String,
required: bool
) -> Result<Parameter>
[src]
gen: &mut OpenApiGenerator,
name: String,
required: bool
) -> Result<Parameter>
impl<'r> OpenApiFromFormValue<'r> for i32
[src]
fn query_parameter(
gen: &mut OpenApiGenerator,
name: String,
required: bool
) -> Result<Parameter>
[src]
gen: &mut OpenApiGenerator,
name: String,
required: bool
) -> Result<Parameter>
impl<'r> OpenApiFromFormValue<'r> for i64
[src]
fn query_parameter(
gen: &mut OpenApiGenerator,
name: String,
required: bool
) -> Result<Parameter>
[src]
gen: &mut OpenApiGenerator,
name: String,
required: bool
) -> Result<Parameter>
impl<'r> OpenApiFromFormValue<'r> for i128
[src]
fn query_parameter(
gen: &mut OpenApiGenerator,
name: String,
required: bool
) -> Result<Parameter>
[src]
gen: &mut OpenApiGenerator,
name: String,
required: bool
) -> Result<Parameter>
impl<'r> OpenApiFromFormValue<'r> for usize
[src]
fn query_parameter(
gen: &mut OpenApiGenerator,
name: String,
required: bool
) -> Result<Parameter>
[src]
gen: &mut OpenApiGenerator,
name: String,
required: bool
) -> Result<Parameter>
impl<'r> OpenApiFromFormValue<'r> for u8
[src]
fn query_parameter(
gen: &mut OpenApiGenerator,
name: String,
required: bool
) -> Result<Parameter>
[src]
gen: &mut OpenApiGenerator,
name: String,
required: bool
) -> Result<Parameter>
impl<'r> OpenApiFromFormValue<'r> for u16
[src]
fn query_parameter(
gen: &mut OpenApiGenerator,
name: String,
required: bool
) -> Result<Parameter>
[src]
gen: &mut OpenApiGenerator,
name: String,
required: bool
) -> Result<Parameter>
impl<'r> OpenApiFromFormValue<'r> for u32
[src]
fn query_parameter(
gen: &mut OpenApiGenerator,
name: String,
required: bool
) -> Result<Parameter>
[src]
gen: &mut OpenApiGenerator,
name: String,
required: bool
) -> Result<Parameter>
impl<'r> OpenApiFromFormValue<'r> for u64
[src]
fn query_parameter(
gen: &mut OpenApiGenerator,
name: String,
required: bool
) -> Result<Parameter>
[src]
gen: &mut OpenApiGenerator,
name: String,
required: bool
) -> Result<Parameter>
impl<'r> OpenApiFromFormValue<'r> for u128
[src]
fn query_parameter(
gen: &mut OpenApiGenerator,
name: String,
required: bool
) -> Result<Parameter>
[src]
gen: &mut OpenApiGenerator,
name: String,
required: bool
) -> Result<Parameter>
impl<'r> OpenApiFromFormValue<'r> for bool
[src]
fn query_parameter(
gen: &mut OpenApiGenerator,
name: String,
required: bool
) -> Result<Parameter>
[src]
gen: &mut OpenApiGenerator,
name: String,
required: bool
) -> Result<Parameter>
impl<'r> OpenApiFromFormValue<'r> for String
[src]
fn query_parameter(
gen: &mut OpenApiGenerator,
name: String,
required: bool
) -> Result<Parameter>
[src]
gen: &mut OpenApiGenerator,
name: String,
required: bool
) -> Result<Parameter>
impl<'r, T: OpenApiFromFormValue<'r>> OpenApiFromFormValue<'r> for StdResult<T, T::Error>
[src]
fn query_parameter(
gen: &mut OpenApiGenerator,
name: String,
required: bool
) -> Result<Parameter>
[src]
gen: &mut OpenApiGenerator,
name: String,
required: bool
) -> Result<Parameter>
impl<'r, T: OpenApiFromFormValue<'r>> OpenApiFromFormValue<'r> for Option<T>
[src]
fn query_parameter(
gen: &mut OpenApiGenerator,
name: String,
_required: bool
) -> Result<Parameter>
[src]
gen: &mut OpenApiGenerator,
name: String,
_required: bool
) -> Result<Parameter>