pub enum ResolvedAuthSource {
Cli,
ConfigFile,
Keyring,
Env,
Command,
Secret,
Missing,
Unresolved,
}Expand description
The CLASS of auth source resolved for the route.
This records only where a credential comes from, never the credential value itself. There is intentionally no field that could hold a secret.
Variants§
Cli
Supplied via CLI flag/argument.
ConfigFile
Read from a config file.
Keyring
Read from the OS keyring.
Env
Read from an environment variable.
Command
Produced by running a command.
Secret
Resolved from a named secret.
Missing
No credential resolved.
Unresolved
Auth resolution has not been performed for this candidate.
The route resolver never inspects credentials, so a freshly resolved
candidate honestly reports Unresolved rather than claiming Missing
(which would assert a lookup that never happened).
Trait Implementations§
Source§impl Clone for ResolvedAuthSource
impl Clone for ResolvedAuthSource
Source§fn clone(&self) -> ResolvedAuthSource
fn clone(&self) -> ResolvedAuthSource
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 moreSource§impl Debug for ResolvedAuthSource
impl Debug for ResolvedAuthSource
Source§impl<'de> Deserialize<'de> for ResolvedAuthSource
impl<'de> Deserialize<'de> for ResolvedAuthSource
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for ResolvedAuthSource
Source§impl PartialEq for ResolvedAuthSource
impl PartialEq for ResolvedAuthSource
Source§impl Serialize for ResolvedAuthSource
impl Serialize for ResolvedAuthSource
impl StructuralPartialEq for ResolvedAuthSource
Auto Trait Implementations§
impl Freeze for ResolvedAuthSource
impl RefUnwindSafe for ResolvedAuthSource
impl Send for ResolvedAuthSource
impl Sync for ResolvedAuthSource
impl Unpin for ResolvedAuthSource
impl UnsafeUnpin for ResolvedAuthSource
impl UnwindSafe for ResolvedAuthSource
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.