pub enum SecretSource {
Keyring,
Env,
}Expand description
Identifies which layer in the resolution chain supplied a secret.
Returned by Secrets::resolve_with_source so callers can
distinguish whether a value came from the configured store or from
a process environment variable.
Variants§
Keyring
The secret was returned by the configured KeyringStore backend.
Env
The secret was found in a process environment variable.
Trait Implementations§
Source§impl Clone for SecretSource
impl Clone for SecretSource
Source§fn clone(&self) -> SecretSource
fn clone(&self) -> SecretSource
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for SecretSource
Source§impl Debug for SecretSource
impl Debug for SecretSource
impl Eq for SecretSource
Source§impl PartialEq for SecretSource
impl PartialEq for SecretSource
Source§fn eq(&self, other: &SecretSource) -> bool
fn eq(&self, other: &SecretSource) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for SecretSource
Auto Trait Implementations§
impl Freeze for SecretSource
impl RefUnwindSafe for SecretSource
impl Send for SecretSource
impl Sync for SecretSource
impl Unpin for SecretSource
impl UnsafeUnpin for SecretSource
impl UnwindSafe for SecretSource
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