pub struct DefaultCredentialProviderBuilder { /* private fields */ }Expand description
Builder for DefaultCredentialProvider.
Use configure_* to customize providers and disable_*(bool) to control
participation in the chain. Finally call build() to create the provider.
Implementations§
Source§impl DefaultCredentialProviderBuilder
impl DefaultCredentialProviderBuilder
Sourcepub fn configure_env<F>(self, f: F) -> Self
pub fn configure_env<F>(self, f: F) -> Self
Configure the environment credential provider.
Sourcepub fn disable_env(self, disable: bool) -> Self
pub fn disable_env(self, disable: bool) -> Self
Disable (true) or ensure enabled (false) the environment provider.
Sourcepub fn configure_assume_role<F>(self, f: F) -> Self
pub fn configure_assume_role<F>(self, f: F) -> Self
Configure the OIDC assume-role credential provider.
Sourcepub fn disable_assume_role(self, disable: bool) -> Self
pub fn disable_assume_role(self, disable: bool) -> Self
Disable (true) or ensure enabled (false) the assume-role provider.
Sourcepub fn build(self) -> DefaultCredentialProvider
pub fn build(self) -> DefaultCredentialProvider
Build the DefaultCredentialProvider with the configured options.
Trait Implementations§
Source§impl Default for DefaultCredentialProviderBuilder
impl Default for DefaultCredentialProviderBuilder
Source§fn default() -> DefaultCredentialProviderBuilder
fn default() -> DefaultCredentialProviderBuilder
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for DefaultCredentialProviderBuilder
impl RefUnwindSafe for DefaultCredentialProviderBuilder
impl Send for DefaultCredentialProviderBuilder
impl Sync for DefaultCredentialProviderBuilder
impl Unpin for DefaultCredentialProviderBuilder
impl UnwindSafe for DefaultCredentialProviderBuilder
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more