pub fn build(&self) -> DefaultAzureCredential {
        let source_count = self.include_azure_cli_credential as usize
            + self.include_azure_cli_credential as usize
            + self.include_managed_identity_credential as usize;
        let mut sources = Vec::<DefaultAzureCredentialEnum>::with_capacity(source_count);
        if self.include_environment_credential {
            sources.push(DefaultAzureCredentialEnum::Environment(
                EnvironmentCredential::default(),
            ));
        }
        if self.include_managed_identity_credential {
            sources.push(DefaultAzureCredentialEnum::ManagedIdentity(
                ImdsManagedIdentityCredential::default(),
            ))
        }
        if self.include_azure_cli_credential {
            sources.push(DefaultAzureCredentialEnum::AzureCli(AzureCliCredential {}));
        }
        DefaultAzureCredential::with_sources(sources)
    }
/// Create a `DefaultAzureCredential` from this builder.
Create a `DefaultAzureCredential` from this builder.
Create a ` DefaultAzureCredential ` from this builder .
pub fn build(&self) -> DefaultAzureCredential {
        let source_count = self.include_azure_cli_credential as usize
            + self.include_azure_cli_credential as usize
            + self.include_managed_identity_credential as usize;
        let mut sources = Vec::<DefaultAzureCredentialEnum>::with_capacity(source_count);
        if self.include_environment_credential {
            sources.push(DefaultAzureCredentialEnum::Environment(
                EnvironmentCredential::default(),
            ));
        }
        if self.include_managed_identity_credential {
            sources.push(DefaultAzureCredentialEnum::ManagedIdentity(
                ImdsManagedIdentityCredential::default(),
            ))
        }
        if self.include_azure_cli_credential {
            sources.push(DefaultAzureCredentialEnum::AzureCli(AzureCliCredential {}));
        }
        DefaultAzureCredential::with_sources(sources)
    }
pub fn build ( & self ) -> DefaultAzureCredential { let source_count = self . include_azure_cli_credential as usize + self . include_azure_cli_credential as usize + self . include_managed_identity_credential as usize ; let mut sources = Vec :: < DefaultAzureCredentialEnum > :: with_capacity ( source_count ) ; if self . include_environment_credential { sources . push ( DefaultAzureCredentialEnum :: Environment ( EnvironmentCredential :: default ( ) , ) ) ; } if self . include_managed_identity_credential { sources . push ( DefaultAzureCredentialEnum :: ManagedIdentity ( ImdsManagedIdentityCredential :: default ( ) , ) ) } if self . include_azure_cli_credential { sources . push ( DefaultAzureCredentialEnum :: AzureCli ( AzureCliCredential { } ) ) ; } DefaultAzureCredential :: with_sources ( sources ) }
Create a `DefaultAzureCredential` from this builder.
Create a ` DefaultAzureCredential ` from this builder .
&self