pub struct JwtAuthState {
pub jwt: Arc<JwtService>,
pub public_routes: Arc<Vec<String>>,
}Expand description
État partagé du middleware JWT.
Fields§
§jwt: Arc<JwtService>§public_routes: Arc<Vec<String>>Implementations§
Source§impl JwtAuthState
impl JwtAuthState
pub fn new(jwt: Arc<JwtService>, config: &SecurityConfig) -> Self
Trait Implementations§
Source§impl Clone for JwtAuthState
impl Clone for JwtAuthState
Source§fn clone(&self) -> JwtAuthState
fn clone(&self) -> JwtAuthState
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for JwtAuthState
impl RefUnwindSafe for JwtAuthState
impl Send for JwtAuthState
impl Sync for JwtAuthState
impl Unpin for JwtAuthState
impl UnsafeUnpin for JwtAuthState
impl UnwindSafe for JwtAuthState
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