HandlerExt

Trait HandlerExt 

Source
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§

Provided Methods§

Source

fn with_openapi( self, operation: OperationGenerator, ) -> HandlerWithOperation<H, T, S>
where Self: Sized,

Add OpenAPI operation to handler.

Implementors§

Source§

impl<H, T, S> HandlerExt<H, T, S> for HandlerWithOperation<H, T, S>
where H: Handler<T, S>,

Source§

impl<H, T, S> HandlerExt<H, T, S> for H
where H: Handler<T, S>,