valida 1.1.2

Modular validation system for Rust with support for nested structures and localization.
Documentation
1
2
3
4
5
6
7
8
9
10
11
use crate::core::contract::IValidate;

pub trait NestedField<V, E>
where
    V: Send + Sync + 'static,
    E: std::error::Error + Send + Sync + 'static,
{
    fn nested<TValidator>(self, validator: TValidator) -> Self
    where
        TValidator: IValidate<V, E> + 'static;
}