pub enum FieldFormat {
Email,
Uuid,
Url,
Phone,
Custom(Regex),
}Expand description
Field format validators for automatic validation
Variants§
Implementations§
Source§impl FieldFormat
impl FieldFormat
Sourcepub fn validate(&self, value: &FieldValue) -> bool
pub fn validate(&self, value: &FieldValue) -> bool
Validate a field value against this format
Trait Implementations§
Source§impl Clone for FieldFormat
impl Clone for FieldFormat
Source§fn clone(&self) -> FieldFormat
fn clone(&self) -> FieldFormat
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 moreAuto Trait Implementations§
impl Freeze for FieldFormat
impl RefUnwindSafe for FieldFormat
impl Send for FieldFormat
impl Sync for FieldFormat
impl Unpin for FieldFormat
impl UnwindSafe for FieldFormat
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