Expand description
§koruma-collection
A curated set of validators built on top of koruma, organized by domain:
string, format, numeric, collection, and general-purpose validators.
[dependencies]
koruma-collection = { version = "*", features = ["full"] }§Features
§Standard
full: enables all validators and optional dependencies.fmt(default): enablesDisplayimplementations for validators.fluent: enables fluent/i18n integration and embedded translations.full-fluent:full+fluent.
§Format validators
credit-card: validates a credit card number.email: validates an email address.phone-number: validates a phone number.url: validates a URL.
Modules§
- collection
- Collection validation validators.
- format
- Format validation validators.
- general
- General validation validators.
- numeric
- Numeric validation validators.
- string
- String validation validators.