pub struct Jwt { /* private fields */ }Expand description
Struct representing the JWT configuration and operations.
Implementations§
Source§impl Jwt
impl Jwt
Sourcepub fn generate_access_token(&self, sub: String) -> Result<String>
pub fn generate_access_token(&self, sub: String) -> Result<String>
Sourcepub fn refresh_access_token(&self, refresh_token: &str) -> Result<String>
pub fn refresh_access_token(&self, refresh_token: &str) -> Result<String>
Sourcepub fn validate_access_token(&self, token: &str) -> Result<Claims>
pub fn validate_access_token(&self, token: &str) -> Result<Claims>
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Jwt
impl RefUnwindSafe for Jwt
impl Send for Jwt
impl Sync for Jwt
impl Unpin for Jwt
impl UnsafeUnpin for Jwt
impl UnwindSafe for Jwt
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