refactor: gave bindings a consistent naming scheme

This commit is contained in:
antifallobst 2023-11-03 08:11:45 +01:00
parent d3737ff1b4
commit 63b7fcaa38
Signed by: antifallobst
GPG Key ID: 2B4F402172791BAF
1 changed files with 4 additions and 4 deletions

View File

@ -33,7 +33,7 @@ impl Session {
}
}
pub async fn authenticate(
pub async fn account_authenticate(
&mut self,
username: String,
password: String,
@ -68,7 +68,7 @@ impl Session {
}
}
pub async fn register(
pub async fn account_register(
&self,
username: String,
password: String,
@ -117,7 +117,7 @@ impl Session {
}
}
pub async fn verify_account(&mut self, token: String) -> Result<(), VerifyAccountError> {
pub async fn account_verify(&mut self, token: String) -> Result<(), VerifyAccountError> {
let url = format!("{}/account/verify", &self.base_url);
let body = request::AccountVerify { token };
@ -146,7 +146,7 @@ impl Session {
}
}
pub async fn delete_account(
pub async fn account_delete(
&mut self,
reason: Option<String>,
) -> Result<(), DeleteAccountError> {