pub struct DefaultCredentialProviderBuilder { /* private fields */ }Expand description
Builder for DefaultCredentialProvider.
Implementations§
Source§impl DefaultCredentialProviderBuilder
impl DefaultCredentialProviderBuilder
Sourcepub fn env(self, provider: EnvCredentialProvider) -> Self
pub fn env(self, provider: EnvCredentialProvider) -> Self
Set the env ADC provider slot.
Sourcepub fn well_known(self, provider: WellKnownCredentialProvider) -> Self
pub fn well_known(self, provider: WellKnownCredentialProvider) -> Self
Set the well-known ADC provider slot.
Sourcepub fn no_well_known(self) -> Self
pub fn no_well_known(self) -> Self
Remove the well-known ADC provider slot.
Sourcepub fn vm_metadata(self, provider: VmMetadataCredentialProvider) -> Self
pub fn vm_metadata(self, provider: VmMetadataCredentialProvider) -> Self
Set the VM metadata provider slot.
Sourcepub fn no_vm_metadata(self) -> Self
pub fn no_vm_metadata(self) -> Self
Remove the VM metadata provider slot.
Sourcepub fn build(self) -> DefaultCredentialProvider
pub fn build(self) -> DefaultCredentialProvider
Build the DefaultCredentialProvider with the configured options.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for DefaultCredentialProviderBuilder
impl RefUnwindSafe for DefaultCredentialProviderBuilder
impl Send for DefaultCredentialProviderBuilder
impl Sync for DefaultCredentialProviderBuilder
impl Unpin for DefaultCredentialProviderBuilder
impl UnsafeUnpin 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