PolicyEngine

Trait PolicyEngine 

Source
pub trait PolicyEngine: Send + Sync {
    // Required method
    fn allows(
        &self,
        ctx: &SecurityContext,
        resource: &str,
        action: &str,
    ) -> bool;
}
Expand description

Policy Engine - Zero Trust Policy Engine, responsible for evaluating and enforcing policies or rules

Required Methods§

Source

fn allows(&self, ctx: &SecurityContext, resource: &str, action: &str) -> bool

Implementors§