pub type ValidatorFn = dyn Fn(&mut State<'_>, &mut Update) -> bool + Send + Sync;
The function of a custom validator: the current state and an update to fill in; true to pass.