paperclip_actix::app

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§