Struct actix_jwt_session::Pair
source · pub struct Pair<ClaimsType: Claims> {
pub jwt: Authenticated<ClaimsType>,
pub refresh: Authenticated<RefreshToken>,
}
Expand description
JSON Web Token and internally created refresh token.
Both should be encoded using Authenticated::encode and added to response as cookie, header or in body.
Fields§
§jwt: Authenticated<ClaimsType>
Access token in form of JWT decrypted token
refresh: Authenticated<RefreshToken>
Refresh token in form of JWT decrypted token
Auto Trait Implementations§
impl<ClaimsType> RefUnwindSafe for Pair<ClaimsType>where
ClaimsType: RefUnwindSafe,
impl<ClaimsType> Send for Pair<ClaimsType>
impl<ClaimsType> Sync for Pair<ClaimsType>
impl<ClaimsType> Unpin for Pair<ClaimsType>
impl<ClaimsType> UnwindSafe for Pair<ClaimsType>where
ClaimsType: RefUnwindSafe,
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