pub fn assert_validation_error<T, E>(result: &Result<T, E>, field: &str)Expand description
Assert that a validation error occurred for a specific field.
This checks if the error message mentions the specified field name, which is a common pattern for validation errors.