utoipa_actix_web

Trait OpenApiFactory

Source
pub trait OpenApiFactory {
    // Required methods
    fn paths(&self) -> Paths;
    fn schemas(&self, schemas: &mut Vec<(String, RefOr<Schema>)>);
}
Expand description

This trait is used to unify OpenAPI items collection from types implementing this trait.

Required Methods§

Source

fn paths(&self) -> Paths

Get OpenAPI paths.

Source

fn schemas(&self, schemas: &mut Vec<(String, RefOr<Schema>)>)

Collect schema reference and append them to the schemas.

Implementors§

Source§

impl<'t, T: Path + SchemaReferences + Tags<'t>> OpenApiFactory for T

Source§

impl<T> OpenApiFactory for Scope<T>