Skip to main content

evaluate

Function evaluate 

Source
pub fn evaluate(
    policy_id: &str,
    policy: &PolicyConfig,
    actions: &[PolicyAction],
    context: EvalContext<'_>,
) -> Result<Option<PolicyDecision>>
Expand description

The strongest rule of policy that any of actions matches: a deny over an ask, and the first rule of that effect in the policy.