feat: define username exists endpoint

This commit is contained in:
realaravinth
2022-05-11 13:08:44 +05:30
parent 9e5b54a23d
commit 454075a3d9

View File

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