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

This trait is used to document a dynamic part of a path that implements FromParam. For example <user_id> in route path.

Required Methods

Return a Parameter containing the information required to document the FromParam path parameter.

Implementors