pub struct Verification {
pub id: Id,
pub identifier: String,
pub value_hash: Hash,
pub data: Option<String>,
pub expires_at: OffsetDateTime,
pub created_at: OffsetDateTime,
pub updated_at: OffsetDateTime,
}Expand description
Single-use values: email verification, password reset, OAuth state, OTPs.
identifier says what the value is for; only the hash of the value is stored.
Fields§
§id: Id§identifier: String§value_hash: Hash§data: Option<String>Extra data, e.g. an OAuth PKCE verifier or a callback URL.
expires_at: OffsetDateTime§created_at: OffsetDateTime§updated_at: OffsetDateTimeImplementations§
Source§impl Verification
impl Verification
pub const ID: Col<Verification, Id>
pub const IDENTIFIER: Col<Verification, String>
pub const VALUE_HASH: Col<Verification, Hash>
pub const EXPIRES_AT: Col<Verification, OffsetDateTime>
Trait Implementations§
Source§impl Clone for Verification
impl Clone for Verification
Source§impl Debug for Verification
impl Debug for Verification
Source§impl Model for Verification
impl Model for Verification
Source§impl OnTable for Verification
impl OnTable for Verification
type Table = Verification
Source§impl PartialEq for Verification
impl PartialEq for Verification
impl StructuralPartialEq for Verification
Auto Trait Implementations§
impl Forget for Verification
impl Freeze for Verification
impl Move for Verification
impl RefUnwindSafe for Verification
impl Send for Verification
impl Sync for Verification
impl Unpin for Verification
impl UnsafeUnpin for Verification
impl UnwindSafe for Verification
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