pub struct ValidationEngine { /* private fields */ }
Expand description
Main validation engine that orchestrates multiple validators
Implementations§
Source§impl ValidationEngine
impl ValidationEngine
pub fn new() -> Self
pub fn without_cache() -> Self
pub fn add_validator(&mut self, validator: Box<dyn Validator>)
pub fn validate(&self, input: &str) -> ValidationSummary
pub fn partial_validate( &self, input: &str, cursor_pos: usize, ) -> PartialValidationResult
pub fn get_display_errors( &self, input: &str, max_errors: Option<usize>, ) -> Vec<ValidationResult>
pub fn clear_cache(&self)
pub fn validator_count(&self) -> usize
Sourcepub fn get_potential_error_messages(&self) -> Vec<String>
pub fn get_potential_error_messages(&self) -> Vec<String>
Get all potential error messages to calculate display space needed
Trait Implementations§
Auto Trait Implementations§
impl Freeze for ValidationEngine
impl !RefUnwindSafe for ValidationEngine
impl Send for ValidationEngine
impl Sync for ValidationEngine
impl Unpin for ValidationEngine
impl !UnwindSafe for ValidationEngine
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