pub type ValidateFn = Rc<dyn Fn(&Payload) -> Result<(), String>>;
pub struct ValidateFn { /* private fields */ }