pub enum ApprovalGate {
NotRequired,
AlreadyApproved,
PromptRequired,
}Expand description
What a consumer must do before resolving a @secret:<path>
alias. Returned by SessionApprovalCache::evaluate.
Variants§
NotRequired
Policy is Never — proceed straight to resolve, no
dialog, no caching.
AlreadyApproved
Policy is Session AND a non-expired approval exists
in the cache — the consumer may resolve without
prompting again.
PromptRequired
Either no cached approval, or policy is PerCall.
The consumer must surface the
secrets_request_use_approval dialog and observe the
reply before resolving.
Trait Implementations§
Source§impl Clone for ApprovalGate
impl Clone for ApprovalGate
Source§fn clone(&self) -> ApprovalGate
fn clone(&self) -> ApprovalGate
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 ApprovalGate
impl Debug for ApprovalGate
Source§impl PartialEq for ApprovalGate
impl PartialEq for ApprovalGate
Source§fn eq(&self, other: &ApprovalGate) -> bool
fn eq(&self, other: &ApprovalGate) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Copy for ApprovalGate
impl Eq for ApprovalGate
impl StructuralPartialEq for ApprovalGate
Auto Trait Implementations§
impl Freeze for ApprovalGate
impl RefUnwindSafe for ApprovalGate
impl Send for ApprovalGate
impl Sync for ApprovalGate
impl Unpin for ApprovalGate
impl UnsafeUnpin for ApprovalGate
impl UnwindSafe for ApprovalGate
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.