[][src]Trait rocket_okapi::request::OpenApiFromSegments

pub trait OpenApiFromSegments<'r>: FromSegments<'r> {
    fn path_multi_parameter(
        gen: &mut OpenApiGenerator,
        name: String
    ) -> Result<Parameter>; }

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

Required methods

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

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

Loading content...

Implementors

Loading content...