mirror of
https://github.com/fafhrd91/actix-web
synced 2024-11-27 09:42:57 +01:00
fix: error example lints
This commit is contained in:
parent
7038244a7d
commit
ea19d26724
@ -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,
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user