pub struct TemporaryToken<T> {
pub token: T,
pub expiry: Option<Instant>,
}Expand description
A temporary authentication token with an associated expiry
Fields§
§token: TThe temporary credential
expiry: Option<Instant>The instant at which this credential is no longer valid None means the credential does not expire
Trait Implementations§
Source§impl<T: Clone> Clone for TemporaryToken<T>
impl<T: Clone> Clone for TemporaryToken<T>
Auto Trait Implementations§
impl<T> Freeze for TemporaryToken<T>where
T: Freeze,
impl<T> RefUnwindSafe for TemporaryToken<T>where
T: RefUnwindSafe,
impl<T> Send for TemporaryToken<T>where
T: Send,
impl<T> Sync for TemporaryToken<T>where
T: Sync,
impl<T> Unpin for TemporaryToken<T>where
T: Unpin,
impl<T> UnsafeUnpin for TemporaryToken<T>where
T: UnsafeUnpin,
impl<T> UnwindSafe for TemporaryToken<T>where
T: 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