pub trait Validator:
Send
+ Sync
+ 'static {
// Required methods
fn validate(&self, value: &str) -> Option<String>;
fn name(&self) -> &'static str;
}Expand description
A validation rule that can be applied to a string value.
Required Methods§
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".