pub trait AbacPolicyManager {
// Required methods
fn add_policy(&mut self, policy: AbacPolicy) -> Result<(), String>;
fn update_policy(
&mut self,
policy_id: &str,
dsl: &str,
) -> Result<(), String>;
fn evaluate_policy(
&self,
policy_id: &str,
attributes: &HashMap<String, String>,
) -> bool;
}Required Methods§
fn add_policy(&mut self, policy: AbacPolicy) -> Result<(), String>
fn update_policy(&mut self, policy_id: &str, dsl: &str) -> Result<(), String>
fn evaluate_policy( &self, policy_id: &str, attributes: &HashMap<String, String>, ) -> bool
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".