Skip to main content

AuthVerification

Trait AuthVerification 

Source
pub trait AuthVerification:
    Clone
    + Send
    + Sync
    + Serialize
    + Debug
    + 'static {
    // Required methods
    fn id(&self) -> &str;
    fn identifier(&self) -> &str;
    fn value(&self) -> &str;
    fn expires_at(&self) -> DateTime<Utc>;
    fn created_at(&self) -> DateTime<Utc>;
    fn updated_at(&self) -> DateTime<Utc>;
}
Expand description

Trait representing a verification token entity.

Required Methods§

Source

fn id(&self) -> &str

Source

fn identifier(&self) -> &str

Source

fn value(&self) -> &str

Source

fn expires_at(&self) -> DateTime<Utc>

Source

fn created_at(&self) -> DateTime<Utc>

Source

fn updated_at(&self) -> DateTime<Utc>

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§