Trait aliri_braid::Validator[][src]

pub trait Validator {
    type Error: Error + Send + Sync + 'static;
    fn validate(s: &str) -> Result<(), Self::Error>;
}
Expand description

A validator that can verify a given input is valid given certain preconditions

Associated Types

The error produced when the string is invalid

Required methods

Validates a string according to a predetermined set of rules

Implementors