feat: def interface to del traffic pattern

This commit is contained in:
realaravinth
2022-05-14 18:56:41 +05:30
parent 2dd18897b0
commit 5270ced600
2 changed files with 18 additions and 0 deletions

View File

@@ -201,6 +201,13 @@ pub trait MCDatabase: std::marker::Send + std::marker::Sync + CloneSPDatabase {
username: &str,
captcha_key: &str,
) -> DBResult<TrafficPattern>;
/// Delete traffic configuration
async fn delete_traffic_pattern(
&self,
username: &str,
captcha_key: &str,
) -> DBResult<()>;
}
#[derive(Default, PartialEq, Serialize, Deserialize, Clone, Debug)]