pub struct TokenPair {
pub access_token: String,
pub refresh_token: String,
pub token_type: String,
pub expires_in: i64,
pub refresh_expires_in: i64,
}Expand description
令牌对(访问令牌 + 刷新令牌)
Fields§
§access_token: String访问令牌
refresh_token: String刷新令牌
token_type: String令牌类型
expires_in: i64访问令牌过期时间(秒)
refresh_expires_in: i64刷新令牌过期时间(秒)
Trait Implementations§
Auto Trait Implementations§
impl Freeze for TokenPair
impl RefUnwindSafe for TokenPair
impl Send for TokenPair
impl Sync for TokenPair
impl Unpin for TokenPair
impl UnsafeUnpin for TokenPair
impl UnwindSafe for TokenPair
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