Skip to main content

Module async_validators

Module async_validators 

Source
Expand description

Async validation framework for validators requiring runtime operations.

This module provides traits and helpers for validators that need to perform asynchronous operations like network requests or database lookups.

The built-in implementations (EmailFormatValidator, PhoneE164Validator) perform local regex validation only — no network I/O. They implement AsyncValidator so they compose with the same dispatch infrastructure as future network-backed validators.

Structs§

AsyncValidatorConfig
Configuration for an async validator.
ChecksumAsyncValidator
Checksum validator supporting Luhn and Mod-97 algorithms.
EmailFormatValidator
Email format validator.
PhoneE164Validator
E.164 phone number validator.

Enums§

AsyncValidatorProvider
Provider types for async validators.

Traits§

AsyncValidator
Trait for async validators.

Type Aliases§

ArcAsyncValidator
Type alias for arc-wrapped dynamic async validator.
AsyncValidatorResult
Async validator result type.