pub struct ServiceWithOperation<Svc, E>where
Svc: Service<Request, Error = E> + Clone + Send + 'static,
Svc::Response: IntoResponse + 'static,
Svc::Future: Send + 'static,{ /* private fields */ }
Expand description
Wrapper around Service
with associated OpenAPI OperationGenerator
.
Trait Implementations§
Source§impl<Svc, E> From<Svc> for ServiceWithOperation<Svc, E>
impl<Svc, E> From<Svc> for ServiceWithOperation<Svc, E>
Source§impl<Svc, E> ServiceExt<Svc, E> for ServiceWithOperation<Svc, E>
impl<Svc, E> ServiceExt<Svc, E> for ServiceWithOperation<Svc, E>
fn into_service_with_operation(self) -> ServiceWithOperation<Svc, E>
Source§fn with_openapi(
self,
operation: OperationGenerator,
) -> ServiceWithOperation<Svc, E>where
Self: Sized,
fn with_openapi(
self,
operation: OperationGenerator,
) -> ServiceWithOperation<Svc, E>where
Self: Sized,
Add OpenAPI operation to service.
Auto Trait Implementations§
impl<Svc, E> Freeze for ServiceWithOperation<Svc, E>where
Svc: Freeze,
impl<Svc, E> RefUnwindSafe for ServiceWithOperation<Svc, E>where
Svc: RefUnwindSafe,
E: RefUnwindSafe,
impl<Svc, E> Send for ServiceWithOperation<Svc, E>where
E: Send,
impl<Svc, E> Sync for ServiceWithOperation<Svc, E>
impl<Svc, E> Unpin for ServiceWithOperation<Svc, E>
impl<Svc, E> UnwindSafe for ServiceWithOperation<Svc, E>where
Svc: UnwindSafe,
E: UnwindSafe,
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