pub struct RuleValidator { /* private fields */ }Expand description
Validates rules before storage
Implementations§
Source§impl RuleValidator
impl RuleValidator
Sourcepub fn validate(&self, rule: &Rule) -> Result<()>
pub fn validate(&self, rule: &Rule) -> Result<()>
Validate a rule before storage
Performs comprehensive validation including:
- JSON schema validation
- Syntax verification
- Reference checking
- Conflict detection
Sourcepub fn check_conflicts(
&self,
new_rule: &Rule,
existing_rules: &[Rule],
) -> Result<()>
pub fn check_conflicts( &self, new_rule: &Rule, existing_rules: &[Rule], ) -> Result<()>
Validate that a rule doesn’t conflict with existing rules
Sourcepub fn validate_with_report(&self, rule: &Rule) -> ValidationReport
pub fn validate_with_report(&self, rule: &Rule) -> ValidationReport
Generate a detailed validation report
Trait Implementations§
Source§impl Clone for RuleValidator
impl Clone for RuleValidator
Source§fn clone(&self) -> RuleValidator
fn clone(&self) -> RuleValidator
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for RuleValidator
impl Debug for RuleValidator
Auto Trait Implementations§
impl Freeze for RuleValidator
impl RefUnwindSafe for RuleValidator
impl Send for RuleValidator
impl Sync for RuleValidator
impl Unpin for RuleValidator
impl UnwindSafe for RuleValidator
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