pub struct FormTokenRecord {
pub lookup_key: LookupKey,
pub key_version: KeyVersion,
pub subject: TokenSubject,
pub purpose: String,
pub bound_resource: Option<String>,
pub issued_at: u64,
pub expires_at: u64,
}Expand description
Parameters for inserting a new form token.
Fields§
§lookup_key: LookupKeyDomain-separated HMAC of the token secret.
key_version: KeyVersionKey version that produced lookup_key.
subject: TokenSubjectSubject binding (never an empty string).
purpose: StringPurpose label, stable across the token’s lifetime.
bound_resource: Option<String>Optional bound resource (HMAC of a domain object, not plaintext).
issued_at: u64Issuance time as Unix seconds (UTC).
expires_at: u64Expiry as Unix seconds (UTC).
Auto Trait Implementations§
impl Freeze for FormTokenRecord
impl RefUnwindSafe for FormTokenRecord
impl Send for FormTokenRecord
impl Sync for FormTokenRecord
impl Unpin for FormTokenRecord
impl UnsafeUnpin for FormTokenRecord
impl UnwindSafe for FormTokenRecord
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