paperclip_core::v2::schema

Trait Apiv2Errors

source
pub trait Apiv2Errors {
    const ERROR_MAP: &'static [(u16, &'static str)] = _;

    // Provided methods
    fn update_error_definitions(_op: &mut DefaultOperationRaw) { ... }
    fn update_definitions(_map: &mut BTreeMap<String, DefaultSchemaRaw>) { ... }
}
Expand description

Represents a OpenAPI v2 error convertible. This is auto-implemented by framework-specific macros:

Provided Associated Constants§

source

const ERROR_MAP: &'static [(u16, &'static str)] = _

Provided Methods§

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.

Implementations on Foreign Types§

source§

impl Apiv2Errors for ()

source§

impl Apiv2Errors for Error

Implementors§