Skip to main content

lookup

Function lookup 

Source
pub fn lookup(policy: &DataPolicy, sensitivity: Sensitivity) -> PolicyAction
Expand description

Resolve the action for sensitivity under policy.

Picks the action of the highest threshold whose min_sensitivity is satisfied; PolicyAction::Allow when no threshold matches (the permissive default). Works regardless of thresholds ordering.