pub enum ValidationType {
Pattern,
Range,
Choice,
Required,
Format,
}Expand description
Types of validation rules.
Variants§
Pattern
Regex pattern validation.
Range
Numeric range validation (min/max).
Choice
Enum/choice validation.
Required
Required field validation.
Format
Format validation (email, URL, etc.).
Trait Implementations§
Source§impl Clone for ValidationType
impl Clone for ValidationType
Source§fn clone(&self) -> ValidationType
fn clone(&self) -> ValidationType
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 moreSource§impl Debug for ValidationType
impl Debug for ValidationType
Source§impl<'de> Deserialize<'de> for ValidationType
impl<'de> Deserialize<'de> for ValidationType
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for ValidationType
impl PartialEq for ValidationType
Source§impl Serialize for ValidationType
impl Serialize for ValidationType
impl Eq for ValidationType
impl StructuralPartialEq for ValidationType
Auto Trait Implementations§
impl Freeze for ValidationType
impl RefUnwindSafe for ValidationType
impl Send for ValidationType
impl Sync for ValidationType
impl Unpin for ValidationType
impl UnwindSafe for ValidationType
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