pub struct RuleEngineBuilder { /* private fields */ }Expand description
Builder pattern for creating a RustRuleEngine with various configurations
Implementations§
Source§impl RuleEngineBuilder
impl RuleEngineBuilder
Sourcepub fn with_rule_file<P: AsRef<Path>>(self, path: P) -> Result<Self>
pub fn with_rule_file<P: AsRef<Path>>(self, path: P) -> Result<Self>
Add rules from a .grl file
Sourcepub fn with_inline_grl(self, grl_content: &str) -> Result<Self>
pub fn with_inline_grl(self, grl_content: &str) -> Result<Self>
Add rules from inline GRL string
Sourcepub fn with_config(self, config: EngineConfig) -> Self
pub fn with_config(self, config: EngineConfig) -> Self
Set engine configuration
Sourcepub fn build(self) -> RustRuleEngine
pub fn build(self) -> RustRuleEngine
Build the RustRuleEngine
Trait Implementations§
Auto Trait Implementations§
impl Freeze for RuleEngineBuilder
impl RefUnwindSafe for RuleEngineBuilder
impl Send for RuleEngineBuilder
impl Sync for RuleEngineBuilder
impl Unpin for RuleEngineBuilder
impl UnwindSafe for RuleEngineBuilder
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more