Skip to main content

Module pattern

Module pattern 

Source
Expand description

Regex pattern validation rule.

Validates that a string value matches a given regex pattern. The regex is compiled once at first use via OnceLock in the generated code and passed as a reference to this validator.

Functionsยง

anchor_pattern
Validate that the value matches the given regex pattern.
validate_pattern