pub struct ResolvedMatch {
pub matched: bool,
pub is_deny: bool,
pub is_conditional: bool,
pub priority: u32,
pub rule_override_deny: bool,
pub context_deny: bool,
pub require_approval: bool,
pub condition_fired: bool,
pub condition_verdict: VerdictKind,
pub on_no_match_continue: bool,
pub all_constraints_skipped: bool,
}Expand description
A pre-resolved policy match with all verdict-relevant information.
The unverified wrapper produces this struct from the action and a compiled policy. The verified core consumes it. No String, HashMap, glob, or serde operations are needed to compute the verdict from this struct.
§Fields
matched: Whether the policy’s tool/function pattern matched the action.is_deny: Whether the policy type isDeny.is_conditional: Whether the policy type isConditional.priority: The policy’s priority (higher = evaluated first).rule_override_deny: Whether path/network/IP rules forced a Deny.context_deny: Whether context conditions produced a Deny.require_approval: Whether the policy requires human approval.condition_fired: For Conditional policies, whether any constraint matched.condition_verdict: The verdict from the fired constraint (if any).on_no_match_continue: For Conditional policies, whether to skip to next policy when no constraints fire (vs. implicit Allow).all_constraints_skipped: For Conditional policies, whether every constraint was skipped due to missing parameters.
Fields§
§matched: boolWhether the policy’s tool/function pattern matched the action.
is_deny: boolWhether the policy type is Deny.
is_conditional: boolWhether the policy type is Conditional.
priority: u32Policy priority (higher = evaluated first in sorted order).
rule_override_deny: boolWhether path/network/IP rules forced a Deny on this policy.
context_deny: boolWhether context conditions produced a Deny.
require_approval: boolWhether the policy requires human approval (Conditional with require_approval).
condition_fired: boolFor Conditional policies: whether any constraint fired.
condition_verdict: VerdictKindFor Conditional policies: the verdict from the fired constraint.
on_no_match_continue: boolFor Conditional policies: skip to next policy when no constraint fires.
all_constraints_skipped: boolFor Conditional policies: all constraints were skipped (missing params).
Trait Implementations§
Source§impl Clone for ResolvedMatch
impl Clone for ResolvedMatch
Source§fn clone(&self) -> ResolvedMatch
fn clone(&self) -> ResolvedMatch
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more