pub struct SessionRecord {
pub token: String,
pub subject: String,
pub fingerprint: String,
pub location: Option<String>,
pub coords: Option<(f64, f64)>,
pub signature: Option<String>,
pub issued_at: u64,
pub last_seen: u64,
pub expires_at: u64,
pub revoked: bool,
}Expand description
会话记录 —— 这张表就是「token 会话」。
Fields§
§token: String§subject: String§fingerprint: String§location: Option<String>§coords: Option<(f64, f64)>§signature: Option<String>登录时的签名基线。
issued_at: u64§last_seen: u64§expires_at: u64§revoked: boolTrait Implementations§
Source§impl Clone for SessionRecord
impl Clone for SessionRecord
Source§impl Debug for SessionRecord
impl Debug for SessionRecord
Source§impl PartialEq for SessionRecord
impl PartialEq for SessionRecord
impl StructuralPartialEq for SessionRecord
Auto Trait Implementations§
impl Freeze for SessionRecord
impl RefUnwindSafe for SessionRecord
impl Send for SessionRecord
impl Sync for SessionRecord
impl Unpin for SessionRecord
impl UnsafeUnpin for SessionRecord
impl UnwindSafe for SessionRecord
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