Skip to main content

evaluate

Function evaluate 

Source
pub fn evaluate(
    policy: &Policy,
    ctx: &EvalContext,
    action: &Action,
) -> Result<Decision, PolicyError>
Expand description

Compile policy for ctx and decide a single action.

Convenience for one-shot callers; long-lived callers should keep a CompiledPolicy instead.