pub enum TextValidate {
Any,
Number,
Regex(String),
}Expand description
Validator for a Text question.
Variants§
Any
Any non-empty text.
Number
Must parse as a number.
Regex(String)
Must match this regular expression.
Trait Implementations§
Source§impl Clone for TextValidate
impl Clone for TextValidate
Source§fn clone(&self) -> TextValidate
fn clone(&self) -> TextValidate
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 TextValidate
impl Debug for TextValidate
Source§impl Default for TextValidate
impl Default for TextValidate
Source§fn default() -> TextValidate
fn default() -> TextValidate
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for TextValidate
impl<'de> Deserialize<'de> for TextValidate
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 TextValidate
impl PartialEq for TextValidate
Source§impl Serialize for TextValidate
impl Serialize for TextValidate
impl StructuralPartialEq for TextValidate
Auto Trait Implementations§
impl Freeze for TextValidate
impl RefUnwindSafe for TextValidate
impl Send for TextValidate
impl Sync for TextValidate
impl Unpin for TextValidate
impl UnsafeUnpin for TextValidate
impl UnwindSafe for TextValidate
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