pub enum PolicyScope {
Global,
Tenant,
Agent,
}Expand description
The scope at which a policy rule applies.
Variants§
Global
Applies to all tenants and agents.
Tenant
Applies to a specific tenant.
Agent
Applies to a specific agent.
Implementations§
Source§impl PolicyScope
impl PolicyScope
Sourcepub fn specificity(self) -> u32
pub fn specificity(self) -> u32
Returns a numeric specificity value (higher = more specific).
Trait Implementations§
Source§impl Clone for PolicyScope
impl Clone for PolicyScope
Source§fn clone(&self) -> PolicyScope
fn clone(&self) -> PolicyScope
Returns a duplicate of the value. Read more
1.0.0 · 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 PolicyScope
impl Debug for PolicyScope
Source§impl Default for PolicyScope
impl Default for PolicyScope
Source§impl<'de> Deserialize<'de> for PolicyScope
impl<'de> Deserialize<'de> for PolicyScope
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
Source§impl PartialEq for PolicyScope
impl PartialEq for PolicyScope
Source§impl Serialize for PolicyScope
impl Serialize for PolicyScope
impl Copy for PolicyScope
impl Eq for PolicyScope
impl StructuralPartialEq for PolicyScope
Auto Trait Implementations§
impl Freeze for PolicyScope
impl RefUnwindSafe for PolicyScope
impl Send for PolicyScope
impl Sync for PolicyScope
impl Unpin for PolicyScope
impl UnsafeUnpin for PolicyScope
impl UnwindSafe for PolicyScope
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.