pub struct JwtToken { /* private fields */ }Expand description
JWT token response struct containing the token and metadata.
Implementations§
Source§impl JwtToken
impl JwtToken
Sourcepub fn get_token_type(&self) -> &String
pub fn get_token_type(&self) -> &String
Sourcepub fn set_token_type<S>(&mut self, token_type: S) -> &mut Self
pub fn set_token_type<S>(&mut self, token_type: S) -> &mut Self
Sourcepub fn get_expires_in(&self) -> u64
pub fn get_expires_in(&self) -> u64
Sourcepub fn set_expires_in(&mut self, expires_in: u64) -> &mut Self
pub fn set_expires_in(&mut self, expires_in: u64) -> &mut Self
Trait Implementations§
Auto Trait Implementations§
impl Freeze for JwtToken
impl RefUnwindSafe for JwtToken
impl Send for JwtToken
impl Sync for JwtToken
impl Unpin for JwtToken
impl UnwindSafe for JwtToken
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