pub struct AuthTokens {
pub access_token: String,
pub refresh_token: String,
pub expires_at: DateTime<Utc>,
}Expand description
Authentication tokens returned from login.
These tokens are used to authenticate API requests. The access token is sent with each request, while the refresh token is used to obtain new access tokens when the current one expires.
Fields§
§access_token: StringAccess token for API requests (JWT format)
refresh_token: StringRefresh token for obtaining new access tokens
expires_at: DateTime<Utc>Token expiration time (UTC)
Trait Implementations§
Source§impl Clone for AuthTokens
impl Clone for AuthTokens
Source§fn clone(&self) -> AuthTokens
fn clone(&self) -> AuthTokens
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 AuthTokens
impl RefUnwindSafe for AuthTokens
impl Send for AuthTokens
impl Sync for AuthTokens
impl Unpin for AuthTokens
impl UnsafeUnpin for AuthTokens
impl UnwindSafe for AuthTokens
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