1 2 3 4 5 6 7 8 9 10
use crate::Validator; #[derive(Debug, Clone)] pub struct Empty; impl Validator for Empty { fn validate(&mut self, value: &str) -> bool { value.is_empty() } }