[][src]Struct openapi_context::context::ContextualPayload

pub struct ContextualPayload<Ctx> where
    Ctx: Send + 'static, 
{ pub inner: Request<Body>, pub context: Ctx, }

This represents context provided as part of the request or the response

Fields

inner: Request<Body>

The inner payload for this request/response

context: Ctx

Request or Response Context

Trait Implementations

impl<Ctx: Debug> Debug for ContextualPayload<Ctx> where
    Ctx: Send + 'static, 
[src]

impl<T, C> Service<ContextualPayload<C>> for AllowAllAuthenticator<T, C> where
    C: RcBound,
    C::Result: Send + Sync + 'static,
    T: Service<ContextualPayload<C::Result>>, 
[src]

type Response = T::Response

Responses given by the service.

type Error = T::Error

Errors produced by the service.

type Future = T::Future

The future response value.

impl<T, C> Service<ContextualPayload<C>> for DropContextService<T, C> where
    C: Send + Sync + 'static,
    T: Service<Request<Body>>, 
[src]

type Response = T::Response

Responses given by the service.

type Error = T::Error

Errors produced by the service.

type Future = T::Future

The future response value.

Auto Trait Implementations

impl<Ctx> !RefUnwindSafe for ContextualPayload<Ctx>

impl<Ctx> Send for ContextualPayload<Ctx>

impl<Ctx> Sync for ContextualPayload<Ctx> where
    Ctx: Sync

impl<Ctx> Unpin for ContextualPayload<Ctx> where
    Ctx: Unpin

impl<Ctx> !UnwindSafe for ContextualPayload<Ctx>

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.