pub enum RulesetLayer {
BuiltinDefault = 0,
Agent = 1,
User = 2,
}Expand description
Priority layer for typed permission-rule selection. Higher ordinal = higher priority. Matching typed rules compare layer before action and specificity. Hard denied prefixes are merged across layers and checked first.
Variants§
Trait Implementations§
Source§impl Clone for RulesetLayer
impl Clone for RulesetLayer
Source§fn clone(&self) -> RulesetLayer
fn clone(&self) -> RulesetLayer
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 RulesetLayer
Source§impl Debug for RulesetLayer
impl Debug for RulesetLayer
Source§impl<'de> Deserialize<'de> for RulesetLayer
impl<'de> Deserialize<'de> for RulesetLayer
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 RulesetLayer
Source§impl Ord for RulesetLayer
impl Ord for RulesetLayer
Source§fn cmp(&self, other: &RulesetLayer) -> Ordering
fn cmp(&self, other: &RulesetLayer) -> 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 RulesetLayer
impl PartialEq for RulesetLayer
Source§impl PartialOrd for RulesetLayer
impl PartialOrd for RulesetLayer
Source§impl Serialize for RulesetLayer
impl Serialize for RulesetLayer
impl StructuralPartialEq for RulesetLayer
Auto Trait Implementations§
impl Freeze for RulesetLayer
impl RefUnwindSafe for RulesetLayer
impl Send for RulesetLayer
impl Sync for RulesetLayer
impl Unpin for RulesetLayer
impl UnsafeUnpin for RulesetLayer
impl UnwindSafe for RulesetLayer
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