[][src]Trait rocket_okapi::request::OpenApiFromParam

pub trait OpenApiFromParam<'r>: FromParam<'r> {
    fn path_parameter(
        gen: &mut OpenApiGenerator,
        name: String
    ) -> Result<Parameter>; }

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

Required methods

fn path_parameter(gen: &mut OpenApiGenerator, name: String) -> Result<Parameter>

Return a RequestBody containing the information required to document the FromParam for implementer. Path parameters.

Loading content...

Implementations on Foreign Types

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

impl<'r> OpenApiFromParam<'r> for Cow<'r, str>[src]

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

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

Loading content...

Implementors

Loading content...