[][src]Trait rocket_okapi::request::OpenApiFromFormValue

pub trait OpenApiFromFormValue<'r>: FromFormValue<'r> {
    fn query_parameter(
        gen: &mut OpenApiGenerator,
        name: String,
        required: bool
    ) -> Result<Parameter>; }

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>

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

Loading content...

Implementations on Foreign Types

impl<'r> OpenApiFromFormValue<'r> for f32[src]

impl<'r> OpenApiFromFormValue<'r> for f64[src]

impl<'r> OpenApiFromFormValue<'r> for isize[src]

impl<'r> OpenApiFromFormValue<'r> for i8[src]

impl<'r> OpenApiFromFormValue<'r> for i16[src]

impl<'r> OpenApiFromFormValue<'r> for i32[src]

impl<'r> OpenApiFromFormValue<'r> for i64[src]

impl<'r> OpenApiFromFormValue<'r> for i128[src]

impl<'r> OpenApiFromFormValue<'r> for usize[src]

impl<'r> OpenApiFromFormValue<'r> for u8[src]

impl<'r> OpenApiFromFormValue<'r> for u16[src]

impl<'r> OpenApiFromFormValue<'r> for u32[src]

impl<'r> OpenApiFromFormValue<'r> for u64[src]

impl<'r> OpenApiFromFormValue<'r> for u128[src]

impl<'r> OpenApiFromFormValue<'r> for bool[src]

impl<'r> OpenApiFromFormValue<'r> for String[src]

impl<'r, T: OpenApiFromFormValue<'r>> OpenApiFromFormValue<'r> for StdResult<T, T::Error>[src]

impl<'r, T: OpenApiFromFormValue<'r>> OpenApiFromFormValue<'r> for Option<T>[src]

Loading content...

Implementors

Loading content...