pub enum SecretRef {
Env {
name: String,
},
OnePassword {
vault: String,
item: String,
section: Option<String>,
field: String,
query: Option<String>,
},
OnePasswordEnvironment {
environment: String,
name: String,
},
Keyring {
service: String,
account: String,
},
}Expand description
A parsed provider reference (the ref of a catalog entry).
Variants§
Env
env:NAME: a process environment variable.
OnePassword
op://vault/item[/section]/field[?query]: a 1Password item field.
OnePasswordEnvironment
op-env://<environment-id>/<NAME>: a 1Password Environment variable.
Keyring
keyring://<service>/<account>: an OS keyring entry.
Implementations§
Trait Implementations§
Source§impl Display for SecretRef
The canonical text, which SecretRef::parse reads back unchanged.
impl Display for SecretRef
The canonical text, which SecretRef::parse reads back unchanged.
impl Eq for SecretRef
impl StructuralPartialEq for SecretRef
Auto Trait Implementations§
impl Forget for SecretRef
impl Freeze for SecretRef
impl Move for SecretRef
impl RefUnwindSafe for SecretRef
impl Send for SecretRefwhere
RawVecInner: Send,
impl Sync for SecretRefwhere
RawVecInner: Sync,
impl Unpin for SecretRef
impl UnsafeUnpin for SecretRef
impl UnwindSafe for SecretRefwhere
RawVecInner: UnwindSafe,
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.