pub struct CachedToken {
pub endpoint_url: String,
pub token: String,
pub exp_unix: i64,
}Expand description
A minted session JWT plus the endpoint it authenticates against and its wall-clock expiry. This is the unit cached by the RPC client and the unit a host persists between processes (e.g. the CLI’s on-disk token cache).
exp_unix is the JWT exp claim (unix seconds), used directly so it
survives a process restart (unlike a monotonic Instant).
Fields§
§endpoint_url: StringThe provisioned tooling-access endpoint URL the JWT authenticates against.
token: StringThe minted ES256 session JWT, presented as a Bearer token.
exp_unix: i64JWT exp claim in unix seconds.
Trait Implementations§
Source§impl Clone for CachedToken
impl Clone for CachedToken
Source§fn clone(&self) -> CachedToken
fn clone(&self) -> CachedToken
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 CachedToken
impl Debug for CachedToken
Source§impl<'de> Deserialize<'de> for CachedToken
impl<'de> Deserialize<'de> for CachedToken
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for CachedToken
impl RefUnwindSafe for CachedToken
impl Send for CachedToken
impl Sync for CachedToken
impl Unpin for CachedToken
impl UnsafeUnpin for CachedToken
impl UnwindSafe for CachedToken
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