Open zhu-he opened 2 years ago
#[test] fn test() { #[derive(Debug, Validate)] struct TestStruct { #[validate(range(max = 10000000000000000))] val: u64, } let s = TestStruct { val: 10000000000000001 }; assert!(s.validate().is_err()); }