pub struct ApiKeyAuthService<S> { /* private fields */ }
Expand description
Tower service behind the API key auth middleware.
Implementations§
Source§impl<S> ApiKeyAuthService<S>
impl<S> ApiKeyAuthService<S>
Sourcepub fn new(inner: S, auth: ApiKeyAuth) -> Self
pub fn new(inner: S, auth: ApiKeyAuth) -> Self
Create a new service.
Trait Implementations§
Source§impl<S: Clone> Clone for ApiKeyAuthService<S>
impl<S: Clone> Clone for ApiKeyAuthService<S>
Source§fn clone(&self) -> ApiKeyAuthService<S>
fn clone(&self) -> ApiKeyAuthService<S>
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl<S: Debug> Debug for ApiKeyAuthService<S>
impl<S: Debug> Debug for ApiKeyAuthService<S>
Source§impl<S, ReqBody, ResBody> Service<Request<ReqBody>> for ApiKeyAuthService<S>
impl<S, ReqBody, ResBody> Service<Request<ReqBody>> for ApiKeyAuthService<S>
Auto Trait Implementations§
impl<S> Freeze for ApiKeyAuthService<S>where
S: Freeze,
impl<S> RefUnwindSafe for ApiKeyAuthService<S>where
S: RefUnwindSafe,
impl<S> Send for ApiKeyAuthService<S>where
S: Send,
impl<S> Sync for ApiKeyAuthService<S>where
S: Sync,
impl<S> Unpin for ApiKeyAuthService<S>where
S: Unpin,
impl<S> UnwindSafe for ApiKeyAuthService<S>where
S: 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