pub struct AccountHandler { /* private fields */ }
Expand description
Account operations handler Handler for account management operations
Provides methods for managing account information, API keys, owners, payment methods, SSO/SAML configuration, and billing addresses.
Implementations§
Source§impl AccountHandler
impl AccountHandler
Sourcepub fn new(client: CloudClient) -> Self
pub fn new(client: CloudClient) -> Self
Create a new handler
Sourcepub async fn get_current_account(&self) -> Result<RootAccount>
pub async fn get_current_account(&self) -> Result<RootAccount>
Get current account Gets information on this account.
GET /
Sourcepub async fn get_data_persistence_options(
&self,
) -> Result<DataPersistenceOptions>
pub async fn get_data_persistence_options( &self, ) -> Result<DataPersistenceOptions>
Get data persistence options Gets a list of all data persistence options for this account.
GET /data-persistence
Sourcepub async fn get_supported_database_modules(&self) -> Result<ModulesData>
pub async fn get_supported_database_modules(&self) -> Result<ModulesData>
Get advanced capabilities Gets a list of Redis advanced capabilities (also known as modules) available for this account. Advanced capability support may differ based on subscription and database settings.
GET /database-modules
Sourcepub async fn get_account_system_logs(
&self,
offset: Option<i32>,
limit: Option<i32>,
) -> Result<AccountSystemLogEntries>
pub async fn get_account_system_logs( &self, offset: Option<i32>, limit: Option<i32>, ) -> Result<AccountSystemLogEntries>
Get system logs Gets system logs for this account.
GET /logs
Sourcepub async fn get_account_payment_methods(&self) -> Result<PaymentMethods>
pub async fn get_account_payment_methods(&self) -> Result<PaymentMethods>
Get payment methods Gets a list of all payment methods for this account.
GET /payment-methods
Sourcepub async fn get_supported_search_scaling_factors(
&self,
) -> Result<SearchScalingFactorsData>
pub async fn get_supported_search_scaling_factors( &self, ) -> Result<SearchScalingFactorsData>
Get query performance factors Gets a list of available query performance factors.
GET /query-performance-factors
Sourcepub async fn get_supported_regions(
&self,
provider: Option<String>,
) -> Result<Regions>
pub async fn get_supported_regions( &self, provider: Option<String>, ) -> Result<Regions>
Get available Pro plan regions Gets a list of available regions for Pro subscriptions. For Essentials subscriptions, use ‘GET /fixed/plans’.
GET /regions
Sourcepub async fn get_account_session_logs(
&self,
offset: Option<i32>,
limit: Option<i32>,
) -> Result<AccountSessionLogEntries>
pub async fn get_account_session_logs( &self, offset: Option<i32>, limit: Option<i32>, ) -> Result<AccountSessionLogEntries>
Get session logs Gets session logs for this account.
GET /session-logs