pub struct AllowlistRule {
pub tool: String,
pub to: Vec<String>,
pub channel: Vec<String>,
pub max_sensitivity: TaintLevel,
}Expand description
A static allowlist rule from the policy file.
Fields§
§tool: StringTool name this rule applies to.
to: Vec<String>Target patterns (e.g., email addresses, Slack channels). If empty, matches any target.
channel: Vec<String>Channel patterns (for tools like Slack).
max_sensitivity: TaintLevelMaximum sensitivity level allowed by this rule.
Implementations§
Source§impl AllowlistRule
impl AllowlistRule
Trait Implementations§
Source§impl Clone for AllowlistRule
impl Clone for AllowlistRule
Source§fn clone(&self) -> AllowlistRule
fn clone(&self) -> AllowlistRule
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 moreSource§impl Debug for AllowlistRule
impl Debug for AllowlistRule
Source§impl<'de> Deserialize<'de> for AllowlistRule
impl<'de> Deserialize<'de> for AllowlistRule
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 AllowlistRule
impl PartialEq for AllowlistRule
Source§impl Serialize for AllowlistRule
impl Serialize for AllowlistRule
impl StructuralPartialEq for AllowlistRule
Auto Trait Implementations§
impl Freeze for AllowlistRule
impl RefUnwindSafe for AllowlistRule
impl Send for AllowlistRule
impl Sync for AllowlistRule
impl Unpin for AllowlistRule
impl UnsafeUnpin for AllowlistRule
impl UnwindSafe for AllowlistRule
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