ketzal_validation 0.1.1

Declarative models and validation for the Ketzal framework
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
pub mod alpha;
pub mod email;
pub mod r#in;
pub mod regex;

use crate::registry::ValidatorRegistry;

pub(crate) fn register(registry: &mut ValidatorRegistry) {
    registry.register(alpha::Alpha);
    registry.register(email::Email);
    registry.register(r#in::In);
    registry.register(r#in::NotIn);
    registry.register(regex::RegexValidator);
}