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:
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)]
|
||||
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 a new issue