mirror of
https://github.com/actix/examples
synced 2025-06-28 18:00:37 +02:00
part1: Update dependencies
This commit is contained in:
@ -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,
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user