pub enum TokenHealth {
Valid,
ExpiringSoon,
Expired,
NoExpiry,
}Expand description
Token health status for display and pre-call validation.
Variants§
Valid
Token has no expiry or expiry is more than 5 minutes away.
ExpiringSoon
Token expires within 5 minutes (but is not yet expired).
Expired
Token has expired.
NoExpiry
No token expiry information available (API key flow).
Implementations§
Trait Implementations§
Source§impl Clone for TokenHealth
impl Clone for TokenHealth
Source§fn clone(&self) -> TokenHealth
fn clone(&self) -> TokenHealth
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 moreSource§impl Debug for TokenHealth
impl Debug for TokenHealth
Source§impl PartialEq for TokenHealth
impl PartialEq for TokenHealth
impl Copy for TokenHealth
impl Eq for TokenHealth
impl StructuralPartialEq for TokenHealth
Auto Trait Implementations§
impl Freeze for TokenHealth
impl RefUnwindSafe for TokenHealth
impl Send for TokenHealth
impl Sync for TokenHealth
impl Unpin for TokenHealth
impl UnsafeUnpin for TokenHealth
impl UnwindSafe for TokenHealth
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