Trait poem_openapi::ApiResponse[][src]

pub trait ApiResponse: Sized {
    const BAD_REQUEST_HANDLER: bool;

    fn meta() -> MetaResponses;
fn register(registry: &mut Registry); fn from_parse_request_error(err: Error) -> Self { ... } }
Expand description

Associated Constants

If true, it means that the response object has a custom bad request handler.

Required methods

Gets metadata of this response.

Register the schema contained in this response object to the registry.

Provided methods

Convert [ParseRequestError] to this response object.

Implementations on Foreign Types

Implementors