mirror of
https://github.com/actix/examples
synced 2025-06-28 09:50:36 +02:00
part1: Update dependencies
This commit is contained in:
@ -9,9 +9,9 @@ workspace = ".."
|
||||
actix-rt = "1.0.0"
|
||||
actix-web = { version="2.0.0", features=["openssl"] }
|
||||
|
||||
env_logger = "0.7"
|
||||
futures = "0.3.1"
|
||||
serde = { version = "1.0.43", features = ["derive"] }
|
||||
serde_json = "1.0.16"
|
||||
validator = "0.6.3"
|
||||
validator_derive = "0.6.5"
|
||||
env_logger = "0.6"
|
||||
validator = "0.10"
|
||||
validator_derive = "0.10"
|
||||
|
@ -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