pub fn validate_with<T, V: Validator<T>>( value: &T, validator: &V, name: impl Into<String>, ) -> CoreResult<()>
Convenience function to validate with a custom validator