pub struct AccountService<'a> { /* private fields */ }Expand description
The Account operations.
Implementations§
Source§impl<'a> AccountService<'a>
impl<'a> AccountService<'a>
Sourcepub async fn create_export(&self) -> Result<AccountExport, Error>
pub async fn create_export(&self) -> Result<AccountExport, Error>
CreateAccountExport — POST /{accountId}/account/exports.json.
Sent once and never resent.
Sourcepub async fn get_export(&self, export_id: &str) -> Result<AccountExport, Error>
pub async fn get_export(&self, export_id: &str) -> Result<AccountExport, Error>
GetAccountExport — GET /{accountId}/account/exports/{exportId}.
Sent up to 3 times, backing off from 1000 ms, when the answer is 429, 500 or 503.
Sourcepub async fn get_join_code(&self) -> Result<JoinCode, Error>
pub async fn get_join_code(&self) -> Result<JoinCode, Error>
GetJoinCode — GET /{accountId}/account/join_code.json.
Sent up to 3 times, backing off from 1000 ms, when the answer is 429, 500 or 503.
Sourcepub async fn get_settings(&self) -> Result<AccountSettings, Error>
pub async fn get_settings(&self) -> Result<AccountSettings, Error>
GetAccountSettings — GET /{accountId}/account/settings.json.
Sent up to 3 times, backing off from 1000 ms, when the answer is 429, 500 or 503.
Sourcepub async fn reset_join_code(&self) -> Result<(), Error>
pub async fn reset_join_code(&self) -> Result<(), Error>
ResetJoinCode — DELETE /{accountId}/account/join_code.json.
Sent up to 3 times, backing off from 1000 ms, when the answer is 429, 500 or 503.
Sourcepub async fn update_entropy(
&self,
body: &UpdateAccountEntropyRequestContent,
) -> Result<AccountSettings, Error>
pub async fn update_entropy( &self, body: &UpdateAccountEntropyRequestContent, ) -> Result<AccountSettings, Error>
UpdateAccountEntropy — PUT /{accountId}/account/entropy.json.
Sent up to 3 times, backing off from 1000 ms, when the answer is 429, 500 or 503.
Sourcepub async fn update_join_code(
&self,
body: &UpdateJoinCodeRequestContent,
) -> Result<(), Error>
pub async fn update_join_code( &self, body: &UpdateJoinCodeRequestContent, ) -> Result<(), Error>
UpdateJoinCode — PATCH /{accountId}/account/join_code.json.
Sent up to 3 times, backing off from 1000 ms, when the answer is 429, 500 or 503.
Sourcepub async fn update_settings(
&self,
body: &UpdateAccountSettingsRequestContent,
) -> Result<(), Error>
pub async fn update_settings( &self, body: &UpdateAccountSettingsRequestContent, ) -> Result<(), Error>
UpdateAccountSettings — PATCH /{accountId}/account/settings.json.
Sent up to 3 times, backing off from 1000 ms, when the answer is 429, 500 or 503.