pub struct GuardPolicyRule {
pub pack: String,
pub rule_id: String,
pub kind: String,
pub patterns: Vec<String>,
pub allowed_names: Vec<String>,
pub allowed_files: Vec<String>,
pub proof_kinds: 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.
allowed_names: Vec<String>Imported names that a banned-import rule still allows from its patterns.
allowed_files: Vec<String>Producer locations permitted by a gdp-ts proof rule.
proof_kinds: Vec<String>Exact proof labels restricted by a gdp-ts proof rule; empty means all.
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 Forget for GuardPolicyRule
impl Freeze for GuardPolicyRule
impl Move 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