pub struct JwtAuthentication<T> {
pub config: JwtAuthenticationConfig<T>,
}Fields§
§config: JwtAuthenticationConfig<T>Implementations§
Source§impl<T> JwtAuthentication<T>
impl<T> JwtAuthentication<T>
pub fn new(config: JwtAuthenticationConfig<T>) -> Self
Trait Implementations§
Source§impl<T: Clone> Clone for JwtAuthentication<T>
impl<T: Clone> Clone for JwtAuthentication<T>
Source§impl<S, B, T> Transform<S, ServiceRequest> for JwtAuthentication<T>where
S: Service<ServiceRequest, Response = ServiceResponse<B>, Error = Error> + Clone + 'static,
S::Future: 'static,
B: 'static,
T: DeserializeOwned + for<'de> Deserialize<'de> + 'static + Clone,
impl<S, B, T> Transform<S, ServiceRequest> for JwtAuthentication<T>where
S: Service<ServiceRequest, Response = ServiceResponse<B>, Error = Error> + Clone + 'static,
S::Future: 'static,
B: 'static,
T: DeserializeOwned + for<'de> Deserialize<'de> + 'static + Clone,
Source§type Response = ServiceResponse<B>
type Response = ServiceResponse<B>
Responses produced by the service.
Source§type Transform = JwtAuthenticationMiddleware<S, T>
type Transform = JwtAuthenticationMiddleware<S, T>
The
TransformService value created by this factorySource§type Future = Ready<Result<<JwtAuthentication<T> as Transform<S, ServiceRequest>>::Transform, <JwtAuthentication<T> as Transform<S, ServiceRequest>>::InitError>>
type Future = Ready<Result<<JwtAuthentication<T> as Transform<S, ServiceRequest>>::Transform, <JwtAuthentication<T> as Transform<S, ServiceRequest>>::InitError>>
The future response value.
Source§fn new_transform(&self, service: S) -> Self::Future
fn new_transform(&self, service: S) -> Self::Future
Creates and returns a new Transform component, asynchronously
Auto Trait Implementations§
impl<T> !RefUnwindSafe for JwtAuthentication<T>
impl<T> !UnwindSafe for JwtAuthentication<T>
impl<T> Freeze for JwtAuthentication<T>where
JwtAuthenticationConfig<T>: Freeze,
impl<T> Send for JwtAuthentication<T>where
JwtAuthenticationConfig<T>: Send,
impl<T> Sync for JwtAuthentication<T>where
JwtAuthenticationConfig<T>: Sync,
impl<T> Unpin for JwtAuthentication<T>where
JwtAuthenticationConfig<T>: Unpin,
impl<T> UnsafeUnpin for JwtAuthentication<T>where
JwtAuthenticationConfig<T>: UnsafeUnpin,
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