pub fn different(value: &Value, rule: &str, data: &Value, _field: &str) -> bool
验证是否和某个字段的值是否不同 — 对齐 PHP different
different
对齐 PHP Validate.php 第 738-741 行
Validate.php
return $this->getDataValue($data, $rule) != $value;(松散比较 !=)
return $this->getDataValue($data, $rule) != $value;
!=