pub trait ResponseSchema {
    fn schema(code: StatusCode) -> OpenapiSchema;

    fn status_codes() -> Vec<StatusCode>Notable traits for Vec<u8, A>impl<A> Write for Vec<u8, A> where
    A: Allocator
{ ... } }
Expand description

Additional details for IntoResponse to be used with an OpenAPI-aware router.

Required Methods

Return the schema of the response for the given status code. The code may only be one that was previously returned by Self::status_codes. The implementation should panic if that is not the case.

Provided Methods

All status codes returned by this response. Returns [StatusCode::OK] by default.

Implementations on Foreign Types

Implementors