Skip to main content

PolicyEnforcer

Trait PolicyEnforcer 

Source
pub trait PolicyEnforcer: Send + Sync {
    // Required method
    fn enforce<'life0, 'life1, 'async_trait>(
        &'life0 self,
        policy_name: &'static str,
        credentials: &'life1 Token,
        target: Value,
        update: Option<Value>,
    ) -> Pin<Box<dyn Future<Output = Result<PolicyEvaluationResult, PolicyError>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait;
}

Required Methods§

Source

fn enforce<'life0, 'life1, 'async_trait>( &'life0 self, policy_name: &'static str, credentials: &'life1 Token, target: Value, update: Option<Value>, ) -> Pin<Box<dyn Future<Output = Result<PolicyEvaluationResult, PolicyError>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

Implementors§