pub trait Policy: Send + Sync {
// Required methods
fn id(&self) -> &str;
fn evaluate(&self, item: &ContextItem, boundary: &str) -> Option<String>;
}Expand description
Returns a stable reason code when an item violates a boundary policy.