refactor: gave bindings a consistent naming scheme
This commit is contained in:
parent
d3737ff1b4
commit
63b7fcaa38
|
@ -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> {
|
||||
|
|
Loading…
Reference in New Issue