pub struct SessionRecord {
pub id: SessionId,
pub lookup_key: LookupKey,
pub key_version: KeyVersion,
pub subject: SubjectId,
pub created_at: u64,
pub expires_at: u64,
}Expand description
Parameters for inserting a new session.
Fields§
§id: SessionIdStore-assigned identifier.
lookup_key: LookupKeyDomain-separated HMAC of the session secret.
key_version: KeyVersionKey version that produced lookup_key.
subject: SubjectIdThe authenticated subject.
created_at: u64Creation time as Unix seconds (UTC).
expires_at: u64Expiry as Unix seconds (UTC).
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