pub enum PermissionDecision {
Passthrough,
Allow,
Ask,
Deny,
}Expand description
Variants ordered least-restrictive first so the derived Ord matches
the semantic “strength” of the decision: Passthrough < Allow < Ask < Deny.
Merging two outputs picks the stronger decision with .max(...) rather
than a hand-rolled rank table (finding L16). Serde uses variant names
(snake_case), not declaration position, so the reordering is safe.
Variants§
Trait Implementations§
Source§impl Clone for PermissionDecision
impl Clone for PermissionDecision
Source§fn clone(&self) -> PermissionDecision
fn clone(&self) -> PermissionDecision
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 PermissionDecision
Source§impl Debug for PermissionDecision
impl Debug for PermissionDecision
Source§impl<'de> Deserialize<'de> for PermissionDecision
impl<'de> Deserialize<'de> for PermissionDecision
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for PermissionDecision
Source§impl Ord for PermissionDecision
impl Ord for PermissionDecision
Source§fn cmp(&self, other: &PermissionDecision) -> Ordering
fn cmp(&self, other: &PermissionDecision) -> Ordering
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for PermissionDecision
impl PartialEq for PermissionDecision
Source§fn eq(&self, other: &PermissionDecision) -> bool
fn eq(&self, other: &PermissionDecision) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl PartialOrd for PermissionDecision
impl PartialOrd for PermissionDecision
impl StructuralPartialEq for PermissionDecision
Auto Trait Implementations§
impl Freeze for PermissionDecision
impl RefUnwindSafe for PermissionDecision
impl Send for PermissionDecision
impl Sync for PermissionDecision
impl Unpin for PermissionDecision
impl UnsafeUnpin for PermissionDecision
impl UnwindSafe for PermissionDecision
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> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
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.