Skip to main content

different

Function different 

Source
pub fn different(value: &Value, rule: &str, data: &Value, _field: &str) -> bool
Expand description

验证是否和某个字段的值是否不同 — 对齐 PHP different

对齐 PHP Validate.php 第 738-741 行

§PHP 行为

return $this->getDataValue($data, $rule) != $value;(松散比较 !=