mirror of
https://github.com/actix/actix-web.git
synced 2024-12-17 13:46:36 +00:00
fix: error example lints
This commit is contained in:
parent
7038244a7d
commit
ea19d26724
1 changed files with 8 additions and 8 deletions
|
@ -54,24 +54,24 @@ async fn main() -> std::io::Result<()> {
|
||||||
|
|
||||||
#[derive(Debug, Deserialize)]
|
#[derive(Debug, Deserialize)]
|
||||||
pub struct OptionalFilters {
|
pub struct OptionalFilters {
|
||||||
limit: Option<i32>,
|
pub limit: Option<i32>,
|
||||||
active: Option<bool>,
|
pub active: Option<bool>,
|
||||||
}
|
}
|
||||||
|
|
||||||
#[derive(Debug, Deserialize)]
|
#[derive(Debug, Deserialize)]
|
||||||
pub struct MandatoryFilters {
|
pub struct MandatoryFilters {
|
||||||
limit: i32,
|
pub limit: i32,
|
||||||
active: bool,
|
pub active: bool,
|
||||||
}
|
}
|
||||||
|
|
||||||
#[derive(Debug, Deserialize)]
|
#[derive(Debug, Deserialize)]
|
||||||
pub struct OptionalPayload {
|
pub struct OptionalPayload {
|
||||||
name: Option<String>,
|
pub name: Option<String>,
|
||||||
age: Option<i32>,
|
pub age: Option<i32>,
|
||||||
}
|
}
|
||||||
|
|
||||||
#[derive(Debug, Deserialize)]
|
#[derive(Debug, Deserialize)]
|
||||||
pub struct MandatoryPayload {
|
pub struct MandatoryPayload {
|
||||||
name: String,
|
pub name: String,
|
||||||
age: i32,
|
pub age: i32,
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue