1
0
Fork 0
mirror of https://github.com/actix/actix-web.git synced 2024-12-16 21:26:34 +00:00

fix: error example lints

This commit is contained in:
Roms1383 2024-07-16 00:25:11 +07:00
parent 7038244a7d
commit ea19d26724

View file

@ -54,24 +54,24 @@ async fn main() -> std::io::Result<()> {
#[derive(Debug, Deserialize)]
pub struct OptionalFilters {
limit: Option<i32>,
active: Option<bool>,
pub limit: Option<i32>,
pub active: Option<bool>,
}
#[derive(Debug, Deserialize)]
pub struct MandatoryFilters {
limit: i32,
active: bool,
pub limit: i32,
pub active: bool,
}
#[derive(Debug, Deserialize)]
pub struct OptionalPayload {
name: Option<String>,
age: Option<i32>,
pub name: Option<String>,
pub age: Option<i32>,
}
#[derive(Debug, Deserialize)]
pub struct MandatoryPayload {
name: String,
age: i32,
pub name: String,
pub age: i32,
}