pub struct SecretProviders(/* private fields */);Expand description
The providers a runtime resolves secrets with, by name. A reference to a provider that isn’t registered is an error: a missing keychain never silently falls back to another provider.
Implementations§
Source§impl SecretProviders
impl SecretProviders
Sourcepub fn with(self, provider: impl SecretProvider + 'static) -> Self
pub fn with(self, provider: impl SecretProvider + 'static) -> Self
Register provider under its name, replacing one of the
same name.
Sourcepub fn resolve(&self, secret: &SecretRef) -> Result<SecretValue, SecretError>
pub fn resolve(&self, secret: &SecretRef) -> Result<SecretValue, SecretError>
Resolve secret with its provider.
Trait Implementations§
Source§impl Clone for SecretProviders
impl Clone for SecretProviders
Source§impl Debug for SecretProviders
impl Debug for SecretProviders
Auto Trait Implementations§
impl !RefUnwindSafe for SecretProviders
impl !UnwindSafe for SecretProviders
impl Forget for SecretProviders
impl Freeze for SecretProviders
impl Send for SecretProviders
impl Sync for SecretProviders
impl Unpin for SecretProviders
impl UnsafeUnpin for SecretProviders
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