Update input_value_validators.md
This commit is contained in:
parent
cbba2b9347
commit
c0ad65aafc
|
@ -44,7 +44,7 @@ impl Query {
|
|||
```rust
|
||||
struct MustBeZero {}
|
||||
|
||||
impl InputValueValidator for InputValueValidator {
|
||||
impl InputValueValidator for MustBeZero {
|
||||
fn is_valid(&self, value: &Value) -> Option<String> {
|
||||
if let Value::Int(n) = value {
|
||||
if n.as_i64().unwrap() != 0 {
|
||||
|
|
Loading…
Reference in New Issue
Block a user