Skip to main content

Crate koruma_collection

Crate koruma_collection 

Source
Expand description

§koruma-collection

Docs Crates.io Crowdin

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): enables Display implementations 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.