pub trait AzureAuthOperations: Send + Sync {
// Required methods
fn login(
&self,
role: &str,
jwt: &SecretString,
subscription_id: Option<&str>,
resource_group_name: Option<&str>,
vm_name: Option<&str>,
vmss_name: Option<&str>,
) -> impl Future<Output = Result<AuthInfo, VaultError>> + Send;
fn configure(
&self,
config: &AzureAuthConfigRequest,
) -> impl Future<Output = Result<(), VaultError>> + Send;
fn read_config(
&self,
) -> impl Future<Output = Result<AzureAuthConfig, VaultError>> + Send;
fn create_role(
&self,
name: &str,
params: &AzureAuthRoleRequest,
) -> impl Future<Output = Result<(), VaultError>> + Send;
fn read_role(
&self,
name: &str,
) -> impl Future<Output = Result<AzureAuthRoleInfo, 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;
}Required Methods§
fn login( &self, role: &str, jwt: &SecretString, subscription_id: Option<&str>, resource_group_name: Option<&str>, vm_name: Option<&str>, vmss_name: Option<&str>, ) -> impl Future<Output = Result<AuthInfo, VaultError>> + Send
fn configure( &self, config: &AzureAuthConfigRequest, ) -> impl Future<Output = Result<(), VaultError>> + Send
fn read_config( &self, ) -> impl Future<Output = Result<AzureAuthConfig, VaultError>> + Send
fn create_role( &self, name: &str, params: &AzureAuthRoleRequest, ) -> impl Future<Output = Result<(), VaultError>> + Send
fn read_role( &self, name: &str, ) -> impl Future<Output = Result<AzureAuthRoleInfo, 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
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.