pub struct LifecycleToken {
pub access_token: String,
pub expires_in: Option<u64>,
}Expand description
Token data surfaced to AuthLifecycleHook::on_token_refresh.
Refresh fires after a provider hands back a fresh access token; the hook gets the new bearer plus its remaining lifetime so it can re-prime downstream caches / re-issue derived credentials.
Fields§
§access_token: StringThe freshly-minted provider access token.
expires_in: Option<u64>Remaining TTL in seconds, when the provider reported one.
Trait Implementations§
Source§impl Clone for LifecycleToken
impl Clone for LifecycleToken
Source§fn clone(&self) -> LifecycleToken
fn clone(&self) -> LifecycleToken
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 LifecycleToken
impl Debug for LifecycleToken
Source§impl Default for LifecycleToken
impl Default for LifecycleToken
Source§fn default() -> LifecycleToken
fn default() -> LifecycleToken
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for LifecycleToken
impl RefUnwindSafe for LifecycleToken
impl Send for LifecycleToken
impl Sync for LifecycleToken
impl Unpin for LifecycleToken
impl UnsafeUnpin for LifecycleToken
impl UnwindSafe for LifecycleToken
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