pub struct RefreshedToken {
pub token: String,
pub refresh: Option<String>,
pub until: DateTime<Utc>,
pub token_type: TokenType,
}Expand description
Refresh token information returned to a client.
Fields§
§token: StringThe bearer token.
refresh: Option<String>The new refresh token.
If this is set, the old refresh token has been invalidated.
until: DateTime<Utc>Expiration timestamp (Utc).
Technically, a time to live is expected in the response but this will be transformed later. In a direct backend access situation, this enables high precision timestamps.
token_type: TokenTypeThe type of the new access token.
Trait Implementations§
Source§impl Clone for RefreshedToken
impl Clone for RefreshedToken
Source§fn clone(&self) -> RefreshedToken
fn clone(&self) -> RefreshedToken
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 moreAuto Trait Implementations§
impl Freeze for RefreshedToken
impl RefUnwindSafe for RefreshedToken
impl Send for RefreshedToken
impl Sync for RefreshedToken
impl Unpin for RefreshedToken
impl UnwindSafe for RefreshedToken
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