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§
sourcefn wrap_api(self) -> Self::Wrapper
fn wrap_api(self) -> Self::Wrapper
Consumes this app and produces its wrapper to start tracking paths and their corresponding operations.
sourcefn wrap_api_with_spec(self, spec: DefaultApiRaw) -> Self::Wrapper
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.