pub struct CompileTimeValidator { /* private fields */ }Expand description
Compile-time validator for cross-field rules
Implementations§
Source§impl CompileTimeValidator
impl CompileTimeValidator
Sourcepub fn new(context: SchemaContext) -> Self
pub fn new(context: SchemaContext) -> Self
Create a new compile-time validator
Sourcepub fn validate_cross_field_rule(
&self,
type_name: &str,
left_field: &str,
operator: &str,
right_field: &str,
) -> CompileTimeValidationResult
pub fn validate_cross_field_rule( &self, type_name: &str, left_field: &str, operator: &str, right_field: &str, ) -> CompileTimeValidationResult
Validate a cross-field rule
Sourcepub fn validate_elo_expression(
&self,
type_name: &str,
expression: &str,
) -> CompileTimeValidationResult
pub fn validate_elo_expression( &self, type_name: &str, expression: &str, ) -> CompileTimeValidationResult
Validate an ELO expression at compile time
Trait Implementations§
Auto Trait Implementations§
impl Freeze for CompileTimeValidator
impl RefUnwindSafe for CompileTimeValidator
impl Send for CompileTimeValidator
impl Sync for CompileTimeValidator
impl Unpin for CompileTimeValidator
impl UnsafeUnpin for CompileTimeValidator
impl UnwindSafe for CompileTimeValidator
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