feat: define interface for checking if user email exists

This commit is contained in:
realaravinth
2022-05-11 13:31:14 +05:30
parent 136439c97a
commit 9595ea232b
2 changed files with 12 additions and 0 deletions

View File

@@ -86,6 +86,9 @@ pub trait MCDatabase: std::marker::Send + std::marker::Sync + CloneSPDatabase {
/// check if username exists
async fn username_exists(&self, username: &str) -> DBResult<bool>;
/// check if email exists
async fn email_exists(&self, email: &str) -> DBResult<bool>;
}
/// Trait to clone MCDatabase