pub trait HandlerExt<H, T, S>where
H: Handler<T, S>,{
// Required method
fn into_handler_with_operation(self) -> HandlerWithOperation<H, T, S>;
// Provided method
fn with_openapi(
self,
operation: OperationGenerator,
) -> HandlerWithOperation<H, T, S>
where Self: Sized { ... }
}
Expand description
Trait for converting axum::handler::Handler
into wrapper.
Required Methods§
fn into_handler_with_operation(self) -> HandlerWithOperation<H, T, S>
Provided Methods§
Sourcefn with_openapi(
self,
operation: OperationGenerator,
) -> HandlerWithOperation<H, T, S>where
Self: Sized,
fn with_openapi(
self,
operation: OperationGenerator,
) -> HandlerWithOperation<H, T, S>where
Self: Sized,
Add OpenAPI operation to handler.