1use crate::scanner::error::CreateScannerError;
2use crate::{CompiledRule, Labels};
3
4pub trait RuleConfig: Send + Sync {
5 fn convert_to_compiled_rule(
6 &self,
7 rule_index: usize,
8 label: Labels,
9 ) -> Result<Box<dyn CompiledRule>, CreateScannerError>;
10}