Skip to main content

Module validation

Module validation 

Source
Expand description

Validation helper functions for the #[derive(Validate)] macro.

These functions provide runtime validation for common constraints like email format, URL format, and regex pattern matching.

Traits§

Validate
Trait for types that can be validated.

Functions§

is_valid_email
Check if a string is a valid email address.
is_valid_phone
Check if a string is a “reasonably formatted” phone number.
is_valid_url
Check if a string is a valid URL.
matches_pattern
Check if a string matches a regex pattern.