pub struct AddContext<T, A, B, C, D>where
A: Default + Push<XSpanIdString, Result = B>,
B: Push<Option<AuthData>, Result = C>,
C: Push<Option<Authorization>, Result = D>,{ /* private fields */ }
Expand description
Middleware to add context data from the request
Implementations§
Source§impl<T, A, B, C, D> AddContext<T, A, B, C, D>where
A: Default + Push<XSpanIdString, Result = B>,
B: Push<Option<AuthData>, Result = C>,
C: Push<Option<Authorization>, Result = D>,
impl<T, A, B, C, D> AddContext<T, A, B, C, D>where
A: Default + Push<XSpanIdString, Result = B>,
B: Push<Option<AuthData>, Result = C>,
C: Push<Option<Authorization>, Result = D>,
Trait Implementations§
Source§impl<T, A, B, C, D, ReqBody> Service<Request<ReqBody>> for AddContext<T, A, B, C, D>
impl<T, A, B, C, D, ReqBody> Service<Request<ReqBody>> for AddContext<T, A, B, C, D>
Auto Trait Implementations§
impl<T, A, B, C, D> Freeze for AddContext<T, A, B, C, D>where
T: Freeze,
impl<T, A, B, C, D> RefUnwindSafe for AddContext<T, A, B, C, D>where
T: RefUnwindSafe,
A: RefUnwindSafe,
impl<T, A, B, C, D> Send for AddContext<T, A, B, C, D>
impl<T, A, B, C, D> Sync for AddContext<T, A, B, C, D>
impl<T, A, B, C, D> Unpin for AddContext<T, A, B, C, D>
impl<T, A, B, C, D> UnwindSafe for AddContext<T, A, B, C, D>where
T: UnwindSafe,
A: 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