Trait poem_openapi::Response[][src]

pub trait Response: IntoResponse + Sized {
    const META: &'static MetaResponses;
    const BAD_REQUEST_HANDLER: bool;

    fn register(registry: &mut Registry);

    fn from_parse_request_error(err: Error) -> Self { ... }
}
Expand description

Associated Constants

The metadata of this request type.

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

Required methods

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

Provided methods

Convert Error to this response object.

Implementations on Foreign Types

Implementors