pub struct DateValidator { /* private fields */ }
Expand description
Date validator with configurable format
Implementations§
Source§impl DateValidator
impl DateValidator
Trait Implementations§
Source§impl Debug for DateValidator
impl Debug for DateValidator
Source§impl Validator for DateValidator
impl Validator for DateValidator
Source§fn validate(&self, input: &str) -> ValidationResult
fn validate(&self, input: &str) -> ValidationResult
Validate complete input
Source§fn partial_validate(
&self,
input: &str,
_cursor_pos: usize,
) -> PartialValidationResult
fn partial_validate( &self, input: &str, _cursor_pos: usize, ) -> PartialValidationResult
Validate partial input during typing
Source§fn description(&self) -> &str
fn description(&self) -> &str
Get human-readable description of this validator
Auto Trait Implementations§
impl Freeze for DateValidator
impl RefUnwindSafe for DateValidator
impl Send for DateValidator
impl Sync for DateValidator
impl Unpin for DateValidator
impl UnwindSafe for DateValidator
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