pub struct GuardPolicyRule {
pub pack: String,
pub rule_id: String,
pub kind: String,
pub patterns: Vec<String>,
pub message: Option<String>,
pub severity: String,
pub suppress_token: String,
}Expand description
Rule-pack policy rule that applies to a guard target.
Fields§
§pack: StringRule-pack name.
rule_id: StringRule id inside the pack.
kind: StringRule kind in kebab-case.
patterns: Vec<String>Matcher patterns for the rule, such as callees, import specifiers, or effects.
message: Option<String>Optional rule-authored remediation message.
severity: StringEffective severity for this rule at the target path.
suppress_token: StringScoped suppression token for this specific policy rule.
Trait Implementations§
Source§impl Clone for GuardPolicyRule
impl Clone for GuardPolicyRule
Source§impl Debug for GuardPolicyRule
impl Debug for GuardPolicyRule
Auto Trait Implementations§
impl Freeze for GuardPolicyRule
impl RefUnwindSafe for GuardPolicyRule
impl Send for GuardPolicyRule
impl Sync for GuardPolicyRule
impl Unpin for GuardPolicyRule
impl UnsafeUnpin for GuardPolicyRule
impl UnwindSafe for GuardPolicyRule
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