feat: define delete account db interface

This commit is contained in:
realaravinth 2022-05-11 12:30:49 +05:30
parent 4248959b13
commit 4bdbb52d8f
No known key found for this signature in database
GPG key ID: AD9F0F08E855ED88

View file

@ -80,6 +80,9 @@ pub trait MCDatabase: std::marker::Send + std::marker::Sync + CloneSPDatabase {
/// register a new user
async fn register(&self, p: &Register) -> DBResult<()>;
/// delete a user
async fn delete_user(&self, username: &str) -> DBResult<()>;
}
/// Trait to clone MCDatabase