pub struct StoredToken {
pub token: String,
pub family_id: String,
pub user_id: i64,
pub created_at: i64,
pub expires_at: i64,
pub used: bool,
pub revoked: bool,
}Expand description
存储的令牌元数据
Fields§
§token: String令牌值(refresh token 字符串)
family_id: String所属家族 ID
user_id: i64关联的用户 ID
created_at: i64创建时间(Unix 秒)
expires_at: i64过期时间(Unix 秒)
used: bool是否已被使用(轮换后标记为 true)
revoked: bool是否已被主动撤销
Implementations§
Trait Implementations§
Source§impl Clone for StoredToken
impl Clone for StoredToken
Source§fn clone(&self) -> StoredToken
fn clone(&self) -> StoredToken
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 StoredToken
impl RefUnwindSafe for StoredToken
impl Send for StoredToken
impl Sync for StoredToken
impl Unpin for StoredToken
impl UnsafeUnpin for StoredToken
impl UnwindSafe for StoredToken
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