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() -> Self
pub fn alphanumeric() -> Self
Create an alphanumeric validator.
Sourcepub fn with_message(self, message: &str) -> Self
pub fn with_message(self, message: &str) -> Self
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 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