blob: 0d2d917c00fde79b20313c8d8feb8c6661ccbc36 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
|
#![feature(proc_macro, attr_literals)]
#[macro_use] extern crate validator_derive;
extern crate validator;
use validator::Validate;
#[derive(Validate)]
struct Test {
#[validate(must_match = "s2")]
s: String,
s2: String,
#[validate(must_match = "s4")]
s3: usize,
s4: usize,
}
fn main() {}
|