pub enum ApprovalOutcome {
Deny,
Allow,
AllowForSession,
}Expand description
What a PermissionsApprovalHandler decides for one Ask-tier request.
Variants§
Deny
Refuse this one call.
Allow
Allow this one call only.
AllowForSession
Allow this call AND cache the decision for the rest of this agent’s
session — CC’s “don’t ask again” / oc’s “always” reply (cc§4, oc§4
“Ask/approve flow”). Subsequent calls whose
ApprovalCache::key matches skip the handler entirely.
Trait Implementations§
Source§impl Clone for ApprovalOutcome
impl Clone for ApprovalOutcome
Source§fn clone(&self) -> ApprovalOutcome
fn clone(&self) -> ApprovalOutcome
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 moreimpl Copy for ApprovalOutcome
Source§impl Debug for ApprovalOutcome
impl Debug for ApprovalOutcome
impl Eq for ApprovalOutcome
Source§impl PartialEq for ApprovalOutcome
impl PartialEq for ApprovalOutcome
impl StructuralPartialEq for ApprovalOutcome
Auto Trait Implementations§
impl Freeze for ApprovalOutcome
impl RefUnwindSafe for ApprovalOutcome
impl Send for ApprovalOutcome
impl Sync for ApprovalOutcome
impl Unpin for ApprovalOutcome
impl UnsafeUnpin for ApprovalOutcome
impl UnwindSafe for ApprovalOutcome
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
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§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.