Trait rocket_okapi_fork::request::OpenApiFromData [−][src]
pub trait OpenApiFromData<'r>: FromData<'r> { fn request_body(gen: &mut OpenApiGenerator) -> Result<RequestBody>; }
Expand description
This trait means that the implementer can be used as a FromData
request guard, and that this
can also be documented.
Required methods
fn request_body(gen: &mut OpenApiGenerator) -> Result<RequestBody>
fn request_body(gen: &mut OpenApiGenerator) -> Result<RequestBody>
Return a RequestBody
containing the information required to document the FromData
for
implementer.