Portfolio/entity/src/session_trait.rs
2022-12-21 18:27:58 +01:00

8 lines
No EOL
188 B
Rust

use async_trait::async_trait;
use sea_orm::prelude::Uuid;
#[async_trait]
pub trait UserSession {
async fn expires_at(&self) -> chrono::NaiveDateTime;
async fn id(&self) -> Uuid;
}