From 63b7fcaa38fd0486212123ed5a6cd7e19395a12c Mon Sep 17 00:00:00 2001 From: antifallobst Date: Fri, 3 Nov 2023 08:11:45 +0100 Subject: [PATCH] refactor: gave bindings a consistent naming scheme --- src/lib.rs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/lib.rs b/src/lib.rs index 610dd45..9bcd50a 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -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, ) -> Result<(), DeleteAccountError> {