pub struct AuthTokenPair {
pub access_token: String,
pub refresh_token: String,
pub refresh_jti: RefreshJti,
pub access_expires_at: i64,
pub refresh_expires_at: i64,
}Expand description
Candidate credentials; commit their refresh identity before releasing token strings.
Fields§
§access_token: StringAccess credential; never log it.
refresh_token: StringRefresh credential; never log it.
refresh_jti: RefreshJtiRefresh identity to commit into the store.
access_expires_at: i64Exclusive access expiry.
refresh_expires_at: i64Exclusive refresh expiry.
Trait Implementations§
Source§impl Clone for AuthTokenPair
impl Clone for AuthTokenPair
Source§fn clone(&self) -> AuthTokenPair
fn clone(&self) -> AuthTokenPair
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for AuthTokenPair
impl Debug for AuthTokenPair
Source§impl PartialEq for AuthTokenPair
impl PartialEq for AuthTokenPair
impl Eq for AuthTokenPair
impl StructuralPartialEq for AuthTokenPair
Auto Trait Implementations§
impl Freeze for AuthTokenPair
impl RefUnwindSafe for AuthTokenPair
impl Send for AuthTokenPair
impl Sync for AuthTokenPair
impl Unpin for AuthTokenPair
impl UnsafeUnpin for AuthTokenPair
impl UnwindSafe for AuthTokenPair
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