pub trait GithubAuthOperations: Send + Sync {
// Required methods
fn login(
&self,
token: &SecretString,
) -> impl Future<Output = Result<AuthInfo, VaultError>> + Send;
fn configure(
&self,
config: &GithubConfigRequest,
) -> impl Future<Output = Result<(), VaultError>> + Send;
fn read_config(
&self,
) -> impl Future<Output = Result<GithubConfig, VaultError>> + Send;
fn map_team(
&self,
team: &str,
params: &GithubTeamMapping,
) -> impl Future<Output = Result<(), VaultError>> + Send;
fn read_team_mapping(
&self,
team: &str,
) -> impl Future<Output = Result<GithubTeamInfo, VaultError>> + Send;
fn list_teams(
&self,
) -> impl Future<Output = Result<Vec<String>, VaultError>> + Send;
}Required Methods§
fn login( &self, token: &SecretString, ) -> impl Future<Output = Result<AuthInfo, VaultError>> + Send
fn configure( &self, config: &GithubConfigRequest, ) -> impl Future<Output = Result<(), VaultError>> + Send
fn read_config( &self, ) -> impl Future<Output = Result<GithubConfig, VaultError>> + Send
fn map_team( &self, team: &str, params: &GithubTeamMapping, ) -> impl Future<Output = Result<(), VaultError>> + Send
fn read_team_mapping( &self, team: &str, ) -> impl Future<Output = Result<GithubTeamInfo, VaultError>> + Send
fn list_teams( &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.