pub trait AppRoleAuthOperations: Send + Sync {
// Required methods
fn login(
&self,
role_id: &str,
secret_id: &SecretString,
) -> impl Future<Output = Result<AuthInfo, VaultError>> + Send;
fn create_role(
&self,
name: &str,
params: &AppRoleCreateRequest,
) -> impl Future<Output = Result<(), VaultError>> + Send;
fn read_role(
&self,
name: &str,
) -> impl Future<Output = Result<AppRoleInfo, 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 read_role_id(
&self,
name: &str,
) -> impl Future<Output = Result<String, VaultError>> + Send;
fn generate_secret_id(
&self,
name: &str,
) -> impl Future<Output = Result<AppRoleSecretIdResponse, VaultError>> + Send;
fn destroy_secret_id(
&self,
name: &str,
secret_id: &SecretString,
) -> impl Future<Output = Result<(), VaultError>> + Send;
}Required Methods§
fn login( &self, role_id: &str, secret_id: &SecretString, ) -> impl Future<Output = Result<AuthInfo, VaultError>> + Send
fn create_role( &self, name: &str, params: &AppRoleCreateRequest, ) -> impl Future<Output = Result<(), VaultError>> + Send
fn read_role( &self, name: &str, ) -> impl Future<Output = Result<AppRoleInfo, 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 read_role_id( &self, name: &str, ) -> impl Future<Output = Result<String, VaultError>> + Send
fn generate_secret_id( &self, name: &str, ) -> impl Future<Output = Result<AppRoleSecretIdResponse, VaultError>> + Send
fn destroy_secret_id( &self, name: &str, secret_id: &SecretString, ) -> 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.