Trait RuleService
Source pub trait RuleService: Send + Sync {
// Required methods
fn get_rules<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Vec<Rule>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn get_rule_engine<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Arc<RuleEngine>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn upsert_rule_from<'life0, 'life1, 'async_trait>(
&'life0 self,
actor: AuditActor,
operation: &'life1 str,
target: String,
details: Value,
rule: Rule,
) -> Pin<Box<dyn Future<Output = Result<(), String>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait;
fn delete_rule_from<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
actor: AuditActor,
operation: &'life1 str,
target: String,
details: Value,
rule_id: &'life2 str,
) -> Pin<Box<dyn Future<Output = Result<bool, String>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait;
fn create_mock_response_rule_from<'life0, 'async_trait>(
&'life0 self,
actor: AuditActor,
target: String,
details: Value,
config: MockResponseRuleConfig,
) -> Pin<Box<dyn Future<Output = Result<String, String>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn create_intercept_rule_from<'life0, 'async_trait>(
&'life0 self,
actor: AuditActor,
target: String,
details: Value,
config: InterceptRuleConfig,
) -> Pin<Box<dyn Future<Output = Result<String, String>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
}