pub struct FieldValidator {
pub field_name: String,
pub rules: Vec<ValidationRule>,
pub format_mask: Option<FormatMask>,
pub error_message: Option<String>,
}Expand description
Field validator specification
Fields§
§field_name: StringField name
rules: Vec<ValidationRule>Validation rules
format_mask: Option<FormatMask>Format mask (if applicable)
error_message: Option<String>Custom error message
Trait Implementations§
Source§impl Clone for FieldValidator
impl Clone for FieldValidator
Source§fn clone(&self) -> FieldValidator
fn clone(&self) -> FieldValidator
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 FieldValidator
impl RefUnwindSafe for FieldValidator
impl Send for FieldValidator
impl Sync for FieldValidator
impl Unpin for FieldValidator
impl UnwindSafe for FieldValidator
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