RulePromoter

Trait RulePromoter 

Source
pub trait RulePromoter: Send + Sync {
    // Required method
    fn promote(
        &self,
        rule: &SharedRule,
        from_scope: RuleScope,
        to_scope: RuleScope,
    ) -> Result<()>;
}
Expand description

Trait for rule promotion functionality

Required Methods§

Source

fn promote( &self, rule: &SharedRule, from_scope: RuleScope, to_scope: RuleScope, ) -> Result<()>

Promote a rule from one scope to another

Implementors§