pub enum SecretStatus {
Resolved,
Missing,
Locked,
ProviderUnavailable,
ProviderTooOld,
Unverifiable,
Error,
}Expand description
What resolving a reference found. Never carries the value.
Variants§
Resolved
The value is available.
Missing
Env var unset, keyring entry absent, 1Password item or Environment variable not found, or an alias no catalog defines.
Locked
1Password needs sign-in or approval (or the keyring is locked).
The provider is not on this machine: “1Password CLI not found”, no Secret Service on Linux.
ProviderTooOld
The provider is below the version a feature needs (SPEC 11.11).
Unverifiable
Cannot be checked from here: the value may exist where it is used (env delivery, or an Environment variable on a CLI that cannot list Environment names).
Error
Anything else (a malformed reference, an unexpected provider error).
Implementations§
Trait Implementations§
Source§impl Clone for SecretStatus
impl Clone for SecretStatus
impl Copy for SecretStatus
Source§impl Debug for SecretStatus
impl Debug for SecretStatus
Source§impl Display for SecretStatus
impl Display for SecretStatus
impl Eq for SecretStatus
Source§impl Hash for SecretStatus
impl Hash for SecretStatus
Source§impl PartialEq for SecretStatus
impl PartialEq for SecretStatus
impl StructuralPartialEq for SecretStatus
Auto Trait Implementations§
impl Forget for SecretStatus
impl Freeze for SecretStatus
impl Move for SecretStatus
impl RefUnwindSafe for SecretStatus
impl Send for SecretStatus
impl Sync for SecretStatus
impl Unpin for SecretStatus
impl UnsafeUnpin for SecretStatus
impl UnwindSafe for SecretStatus
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.