Skip to main content

InnerToSchema

Trait InnerToSchema 

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

Contributes schemas referenced by an extractor’s inner payload into the OpenAPI document’s component registry.

See the module-level docs for the motivation.

Required Methods§

Source

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

Append referenced schemas to out. Implementations typically forward to T::schemas(out) for a ToSchema-implementing inner type.

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<T: ToSchema> InnerToSchema for Path<T>

Source§

impl<T: ToSchema> InnerToSchema for Query<T>

Source§

impl<T: ToSchema> InnerToSchema for Json<T>

Implementors§