Struct tame_oauth::IdToken
source · pub struct IdToken {
pub token: String,
pub expiration: SystemTime,
}
Expand description
Represents a id token as returned by OAuth2
servers.
Fields§
§token: String
§expiration: SystemTime
Implementations§
Trait Implementations§
source§impl CacheableToken for IdToken
impl CacheableToken for IdToken
source§fn has_expired(&self) -> bool
fn has_expired(&self) -> bool
Returns true if token is expired.
source§impl PartialEq for IdToken
impl PartialEq for IdToken
impl Eq for IdToken
impl StructuralPartialEq for IdToken
Auto Trait Implementations§
impl Freeze for IdToken
impl RefUnwindSafe for IdToken
impl Send for IdToken
impl Sync for IdToken
impl Unpin for IdToken
impl UnwindSafe for IdToken
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