Trait OpenApiExt

Source
pub trait OpenApiExt<T> {
    type Wrapper;

    // Required methods
    fn wrap_api(self) -> Self::Wrapper;
    fn wrap_api_with_spec(self, spec: DefaultApiRaw) -> Self::Wrapper;
}
Expand description

Extension trait for actix-web applications.

Required Associated Types§

Required Methods§

Source

fn wrap_api(self) -> Self::Wrapper

Consumes this app and produces its wrapper to start tracking paths and their corresponding operations.

Source

fn wrap_api_with_spec(self, spec: DefaultApiRaw) -> Self::Wrapper

Same as wrap_api initializing with provided specification defaults. Useful for defining Api properties outside of definitions and paths.

Implementations on Foreign Types§

Source§

impl<T> OpenApiExt<T> for App<T>

Source§

type Wrapper = App<T>

Source§

fn wrap_api(self) -> Self::Wrapper

Source§

fn wrap_api_with_spec(self, spec: DefaultApiRaw) -> Self::Wrapper

Implementors§