pub enum KeySource {
Config,
Command,
Store,
Missing,
}Expand description
Where a provider’s key came from, for doctor to report.
The point of naming the source is that “it works on my machine” and “it works
in CI” are different configurations, and the difference is invisible in
drep.toml once a stored key exists.
The variant order is the resolution order.
Variants§
Config
The config named an environment variable or a literal, and it resolved.
Command
The config named an api_key_command, which drep runs to mint a key.
Store
The config named nothing and the store had one for this endpoint.
Missing
Neither. The provider will authenticate as not-needed, which a local
server accepts and a cloud one answers with a 401.
Implementations§
Trait Implementations§
impl Eq for KeySource
impl StructuralPartialEq for KeySource
Auto Trait Implementations§
impl Freeze for KeySource
impl RefUnwindSafe for KeySource
impl Send for KeySource
impl Sync for KeySource
impl Unpin for KeySource
impl UnsafeUnpin for KeySource
impl UnwindSafe for KeySource
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,
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.