Skip to main content

execute_explain

Function execute_explain 

Source
pub fn execute_explain(
    rule_def: &RuleDefinition,
    context_json: &str,
) -> RuleEngineResult<ExplainResult>
Expand description

Execute a rule with full tracing metadata attached to the result.

Returns an ExplainResult that records the rule snapshot, context snapshot, final decision, and timestamp — suitable for audit logs and right-to-explanation compliance.