pub struct VerificationCreation {
pub id: Option<String>,
pub identifier: String,
pub value: String,
pub expires_at: DateTime<Utc>,
pub created_at: DateTime<Utc>,
pub updated_at: DateTime<Utc>,
}Expand description
Trusted creation candidate supplied to adapter hooks before persistence. Dates and an explicitly supplied primary ID survive hook transformations.
Fields§
§id: Option<String>§identifier: String§value: String§expires_at: DateTime<Utc>§created_at: DateTime<Utc>§updated_at: DateTime<Utc>Implementations§
Source§impl VerificationCreation
impl VerificationCreation
pub fn data(&self) -> CreateVerification
pub fn snapshot(&self) -> VerificationSnapshot
Trait Implementations§
Source§impl Clone for VerificationCreation
impl Clone for VerificationCreation
Source§impl Debug for VerificationCreation
impl Debug for VerificationCreation
Source§impl From<CreateVerification> for VerificationCreation
impl From<CreateVerification> for VerificationCreation
Source§fn from(data: CreateVerification) -> Self
fn from(data: CreateVerification) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for VerificationCreation
impl RefUnwindSafe for VerificationCreation
impl Send for VerificationCreation
impl Sync for VerificationCreation
impl Unpin for VerificationCreation
impl UnsafeUnpin for VerificationCreation
impl UnwindSafe for VerificationCreation
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