pub enum PolicyRuleKind {
BannedCall,
BannedImport,
BannedEffect,
BannedExport,
}Expand description
Which rule-pack rule kind produced a PolicyViolation.
Variants§
BannedCall
A call site matched a banned-call rule’s callee patterns.
BannedImport
An import or re-export specifier matched a banned-import rule.
BannedEffect
A call site matched a catalogue-derived banned-effect rule.
BannedExport
An exported name matched a banned-export rule.
Trait Implementations§
Source§impl Clone for PolicyRuleKind
impl Clone for PolicyRuleKind
impl Copy for PolicyRuleKind
Source§impl Debug for PolicyRuleKind
impl Debug for PolicyRuleKind
Source§impl<'de> Deserialize<'de> for PolicyRuleKind
impl<'de> Deserialize<'de> for PolicyRuleKind
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 PolicyRuleKind
Source§impl PartialEq for PolicyRuleKind
impl PartialEq for PolicyRuleKind
Source§impl Serialize for PolicyRuleKind
impl Serialize for PolicyRuleKind
impl StructuralPartialEq for PolicyRuleKind
Auto Trait Implementations§
impl Freeze for PolicyRuleKind
impl RefUnwindSafe for PolicyRuleKind
impl Send for PolicyRuleKind
impl Sync for PolicyRuleKind
impl Unpin for PolicyRuleKind
impl UnsafeUnpin for PolicyRuleKind
impl UnwindSafe for PolicyRuleKind
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,
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.