Skip to main content

Policy

Trait Policy 

Source
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.

Required Methods§

Source

fn id(&self) -> &str

Source

fn evaluate(&self, item: &ContextItem, boundary: &str) -> Option<String>

Implementors§