pub struct AccessToken {
pub value: SecretString,
pub expires_in: Duration,
}Expand description
A token and how long it stays valid.
Fields§
§value: SecretStringThe bearer value.
expires_in: DurationLifetime from the moment it was fetched.
Trait Implementations§
Source§impl Clone for AccessToken
impl Clone for AccessToken
Auto Trait Implementations§
impl Forget for AccessToken
impl Freeze for AccessToken
impl Move for AccessToken
impl RefUnwindSafe for AccessToken
impl Send for AccessToken
impl Sync for AccessToken
impl Unpin for AccessToken
impl UnsafeUnpin for AccessToken
impl UnwindSafe for AccessToken
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