Skip to main content

ApidocHandlerSchemas

Trait ApidocHandlerSchemas 

Source
pub trait ApidocHandlerSchemas {
    // Required method
    fn collect(out: &mut Vec<(String, RefOr<Schema>)>);
}
Expand description

Reports the full set of schemas a handler’s arguments reference. The method macro emits an impl for the dispatch struct; the extended routes! macro calls it to extend the OpenAPI router’s schema collection before the router is merged.

Required Methods§

Source

fn collect(out: &mut Vec<(String, RefOr<Schema>)>)

Append all schemas transitively referenced by the handler’s arguments to out.

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.

Implementors§