pub struct TokenPair<A, R> {
pub access_token: A,
pub refresh_token: R,
}Expand description
Access and refresh credentials issued together.
Fields§
§access_token: AShort-lived credential used to access protected resources.
refresh_token: RCredential used for rotation without re-entering primary credentials.
Trait Implementations§
impl<A: Eq, R: Eq> Eq for TokenPair<A, R>
impl<A: PartialEq, R: PartialEq> StructuralPartialEq for TokenPair<A, R>
Auto Trait Implementations§
impl<A, R> Freeze for TokenPair<A, R>
impl<A, R> RefUnwindSafe for TokenPair<A, R>where
A: RefUnwindSafe,
R: RefUnwindSafe,
impl<A, R> Send for TokenPair<A, R>
impl<A, R> Sync for TokenPair<A, R>
impl<A, R> Unpin for TokenPair<A, R>
impl<A, R> UnsafeUnpin for TokenPair<A, R>where
A: UnsafeUnpin,
R: UnsafeUnpin,
impl<A, R> UnwindSafe for TokenPair<A, R>where
A: UnwindSafe,
R: UnwindSafe,
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