pub struct HandlerWithOperation<H, T, S>where
H: Handler<T, S>,{ /* private fields */ }
Expand description
Wrapper around axum::handler::Handler
with associated OpenAPI OperationGenerator
.
Implementations§
Source§impl<H, T, S> HandlerWithOperation<H, T, S>where
H: Handler<T, S>,
impl<H, T, S> HandlerWithOperation<H, T, S>where
H: Handler<T, S>,
pub fn new(handler: H, operation: Option<OperationGenerator>) -> Self
Trait Implementations§
Source§impl<H, T, S> From<H> for HandlerWithOperation<H, T, S>where
H: Handler<T, S>,
impl<H, T, S> From<H> for HandlerWithOperation<H, T, S>where
H: Handler<T, S>,
Source§impl<H, T, S> HandlerExt<H, T, S> for HandlerWithOperation<H, T, S>where
H: Handler<T, S>,
impl<H, T, S> HandlerExt<H, T, S> for HandlerWithOperation<H, T, S>where
H: Handler<T, S>,
fn into_handler_with_operation(self) -> HandlerWithOperation<H, T, S>
Source§fn 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.
Auto Trait Implementations§
impl<H, T, S> Freeze for HandlerWithOperation<H, T, S>where
H: Freeze,
impl<H, T, S> RefUnwindSafe for HandlerWithOperation<H, T, S>
impl<H, T, S> Send for HandlerWithOperation<H, T, S>
impl<H, T, S> Sync for HandlerWithOperation<H, T, S>
impl<H, T, S> Unpin for HandlerWithOperation<H, T, S>
impl<H, T, S> UnwindSafe for HandlerWithOperation<H, T, S>
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more