pub struct TokenWithExpiration {
pub token: BearerAuthToken,
pub expiration: Option<SystemTime>,
}Expand description
A BearerAuthToken and its expected expiration time, or None if the
token never expires.
Fields§
§token: BearerAuthToken§expiration: Option<SystemTime>Trait Implementations§
Source§impl Clone for TokenWithExpiration
impl Clone for TokenWithExpiration
Source§fn clone(&self) -> TokenWithExpiration
fn clone(&self) -> TokenWithExpiration
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 moreAuto Trait Implementations§
impl !Freeze for TokenWithExpiration
impl RefUnwindSafe for TokenWithExpiration
impl Send for TokenWithExpiration
impl Sync for TokenWithExpiration
impl Unpin for TokenWithExpiration
impl UnsafeUnpin for TokenWithExpiration
impl UnwindSafe for TokenWithExpiration
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