pub trait IntoResponseError {
type Err: Debug + Send + 'static;
// Required methods
fn into_response_error(self) -> Result<Response, Self::Err>;
fn status_codes() -> Vec<StatusCode>;
fn schema(code: StatusCode) -> OpenapiSchema;
}
Required Associated Types§
Required Methods§
fn into_response_error(self) -> Result<Response, Self::Err>
fn status_codes() -> Vec<StatusCode>
fn schema(code: StatusCode) -> OpenapiSchema
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.