1
0
mirror of https://github.com/actix/examples synced 2025-06-28 18:00:37 +02:00

part1: Update dependencies

This commit is contained in:
Yuki Okushi
2020-04-05 02:26:11 +09:00
parent 046604f286
commit 6cdc1c8738
10 changed files with 21 additions and 22 deletions

View File

@ -29,9 +29,9 @@ use validator_derive::Validate;
#[derive(Debug, Validate, Deserialize, Serialize)]
struct SomeData {
#[validate(length(min = "1", max = "1000000"))]
#[validate(length(min = 1, max = 1000000))]
id: String,
#[validate(length(min = "1", max = "100"))]
#[validate(length(min = 1, max = 100))]
name: String,
}