STS bits also get dyn.
@@ -142,7 +142,7 @@ where
/// You will need to ensure the provider has a valid code each time you
/// acquire a new STS token.
pub struct StsSessionCredentialsProvider {
- sts_client: Box<StsSessionCredentialsClient + Send + Sync>,
+ sts_client: Box<dyn StsSessionCredentialsClient + Send + Sync>,
session_duration: Duration,
mfa_serial: Option<String>,
mfa_code: Option<String>,
@@ -239,7 +239,7 @@ impl ProvideAwsCredentials for StsSessionCredentialsProvider {
/// You will need to ensure the provider has a valid code each time you
/// acquire a new STS token.
pub struct StsAssumeRoleSessionCredentialsProvider {
- sts_client: Box<StsSessionCredentialsClient + Send + Sync>,
+ sts_client: Box<dyn StsSessionCredentialsClient + Send + Sync>,
role_arn: String,
session_name: String,
external_id: Option<String>,
@@ -353,7 +353,7 @@ impl ProvideAwsCredentials for StsAssumeRoleSessionCredentialsProvider {
/// [AwsCredentials](../rusoto_credential/struct.AwsCredentials.html) provider that calls
/// `AssumeRoleWithWebIdentity` using the provided [StsClient](struct.StsClient.html).
pub struct StsWebIdentityFederationSessionCredentialsProvider {
- sts_client: Box<StsSessionCredentialsClient + Send + Sync>,
+ sts_client: Box<dyn StsSessionCredentialsClient + Send + Sync>,
wif_token: String,
wif_provider: Option<String>,
role_arn: String,
