pub trait DatabaseOperations: Send + Sync {
Show 16 methods
// Required methods
fn configure(
&self,
name: &str,
params: &DatabaseConfigRequest,
) -> impl Future<Output = Result<(), VaultError>> + Send;
fn read_config(
&self,
name: &str,
) -> impl Future<Output = Result<DatabaseConfig, VaultError>> + Send;
fn delete_config(
&self,
name: &str,
) -> impl Future<Output = Result<(), VaultError>> + Send;
fn list_connections(
&self,
) -> impl Future<Output = Result<Vec<String>, VaultError>> + Send;
fn reset_connection(
&self,
name: &str,
) -> impl Future<Output = Result<(), VaultError>> + Send;
fn create_role(
&self,
name: &str,
params: &DatabaseRoleRequest,
) -> impl Future<Output = Result<(), VaultError>> + Send;
fn read_role(
&self,
name: &str,
) -> impl Future<Output = Result<DatabaseRole, 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<DatabaseCredentials, VaultError>> + Send;
fn create_static_role(
&self,
name: &str,
params: &DatabaseStaticRoleRequest,
) -> impl Future<Output = Result<(), VaultError>> + Send;
fn read_static_role(
&self,
name: &str,
) -> impl Future<Output = Result<DatabaseStaticRole, VaultError>> + Send;
fn delete_static_role(
&self,
name: &str,
) -> impl Future<Output = Result<(), VaultError>> + Send;
fn list_static_roles(
&self,
) -> impl Future<Output = Result<Vec<String>, VaultError>> + Send;
fn get_static_credentials(
&self,
name: &str,
) -> impl Future<Output = Result<DatabaseStaticCredentials, VaultError>> + Send;
fn rotate_static_role(
&self,
name: &str,
) -> impl Future<Output = Result<(), VaultError>> + Send;
}Required Methods§
fn configure( &self, name: &str, params: &DatabaseConfigRequest, ) -> impl Future<Output = Result<(), VaultError>> + Send
fn read_config( &self, name: &str, ) -> impl Future<Output = Result<DatabaseConfig, VaultError>> + Send
fn delete_config( &self, name: &str, ) -> impl Future<Output = Result<(), VaultError>> + Send
fn list_connections( &self, ) -> impl Future<Output = Result<Vec<String>, VaultError>> + Send
fn reset_connection( &self, name: &str, ) -> impl Future<Output = Result<(), VaultError>> + Send
fn create_role( &self, name: &str, params: &DatabaseRoleRequest, ) -> impl Future<Output = Result<(), VaultError>> + Send
fn read_role( &self, name: &str, ) -> impl Future<Output = Result<DatabaseRole, 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<DatabaseCredentials, VaultError>> + Send
fn create_static_role( &self, name: &str, params: &DatabaseStaticRoleRequest, ) -> impl Future<Output = Result<(), VaultError>> + Send
fn read_static_role( &self, name: &str, ) -> impl Future<Output = Result<DatabaseStaticRole, VaultError>> + Send
fn delete_static_role( &self, name: &str, ) -> impl Future<Output = Result<(), VaultError>> + Send
fn list_static_roles( &self, ) -> impl Future<Output = Result<Vec<String>, VaultError>> + Send
fn get_static_credentials( &self, name: &str, ) -> impl Future<Output = Result<DatabaseStaticCredentials, VaultError>> + Send
fn rotate_static_role( &self, name: &str, ) -> impl Future<Output = Result<(), 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.