blob: 9a268e7f1503b468a6f28ad18c12eaa81010802f (
plain)
1
2
3
4
5
6
7
8
9
|
pub mod error;
use api_core::models::user::User;
use crate::error::UserError;
#[async_trait::async_trait]
pub trait UsersDriver: Send + Sync {
async fn get_user_by_email(&self, email: &str) -> Result<Option<User>, UserError>;
}
|