pub trait AzureSecretsOperations: Send + Sync {
// Required methods
fn configure(
&self,
params: &AzureConfigRequest,
) -> impl Future<Output = Result<(), VaultError>> + Send;
fn read_config(
&self,
) -> impl Future<Output = Result<AzureConfig, VaultError>> + Send;
fn delete_config(
&self,
) -> impl Future<Output = Result<(), VaultError>> + Send;
fn create_role(
&self,
name: &str,
params: &AzureRoleRequest,
) -> impl Future<Output = Result<(), VaultError>> + Send;
fn read_role(
&self,
name: &str,
) -> impl Future<Output = Result<AzureRole, VaultError>> + Send;
fn delete_role(
&self,
name: &str,
) -> impl Future<Output = Result<(), VaultError>> + Send;
fn list_roles(
&self,
) -> impl Future<Output = Result<Vec<String>, VaultError>> + Send;
fn get_credentials(
&self,
role: &str,
) -> impl Future<Output = Result<AzureCredentials, VaultError>> + Send;
}Required Methods§
fn configure( &self, params: &AzureConfigRequest, ) -> impl Future<Output = Result<(), VaultError>> + Send
fn read_config( &self, ) -> impl Future<Output = Result<AzureConfig, VaultError>> + Send
fn delete_config(&self) -> impl Future<Output = Result<(), VaultError>> + Send
fn create_role( &self, name: &str, params: &AzureRoleRequest, ) -> impl Future<Output = Result<(), VaultError>> + Send
fn read_role( &self, name: &str, ) -> impl Future<Output = Result<AzureRole, VaultError>> + Send
fn delete_role( &self, name: &str, ) -> impl Future<Output = Result<(), VaultError>> + Send
fn list_roles( &self, ) -> impl Future<Output = Result<Vec<String>, VaultError>> + Send
fn get_credentials( &self, role: &str, ) -> impl Future<Output = Result<AzureCredentials, VaultError>> + Send
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.