pub struct Pattern { /* private fields */ }Expand description
Pattern validator using regex-like patterns. Note: Uses simple pattern matching, not full regex.
Implementations§
Source§impl Pattern
impl Pattern
Sourcepub fn alphanumeric() -> Pattern
pub fn alphanumeric() -> Pattern
Create an alphanumeric validator.
Sourcepub fn with_message(self, message: &str) -> Pattern
pub fn with_message(self, message: &str) -> Pattern
Create with custom message.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Pattern
impl RefUnwindSafe for Pattern
impl Send for Pattern
impl Sync for Pattern
impl Unpin for Pattern
impl UnsafeUnpin for Pattern
impl UnwindSafe for Pattern
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