pub trait PolicyChecker: Send + Sync {
// Required method
fn check(&self, subject: &str, resource: &str, operation: &str) -> bool;
}Expand description
Trait for policy checking (allows mocking in tests)
pub trait PolicyChecker: Send + Sync {
// Required method
fn check(&self, subject: &str, resource: &str, operation: &str) -> bool;
}Trait for policy checking (allows mocking in tests)