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 is valid given certain preconditions
Associated Types
type Error: Error + Send + Sync + 'static
[src]
Expand description
The error produced when the string is invalid
Required methods
fn validate(s: &str) -> Result<(), Self::Error>
[src]
Expand description
Validates a string according to a predetermined set of rules
Implementors
Loading content...