[][src]Module rocket_okapi::request

This module contains several traits that correspond to the Rocket traits pertaining to request guards and responses

Traits

OpenApiFromData

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

OpenApiFromFormValue

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

OpenApiFromParam

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

OpenApiFromQuery

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

OpenApiFromSegments

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

Functions

get_nested_query_parameters

Given an object that implements the JsonSchema generate all the Parameter that are used to create documentation. Use when manually implementing a Query Guard. Example: