1
0
Fork 0
mirror of https://github.com/actix/actix-web.git synced 2025-01-20 14:08:07 +00:00

fix: error example

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

View file

@ -27,7 +27,7 @@ async fn optional_payload(
} }
#[post("/mandatory")] #[post("/mandatory")]
async fn mandatory_payload(qs: Query<MandatoryFilters>, payload: Json<OptionalPayload>) -> String { async fn mandatory_payload(qs: Query<MandatoryFilters>, payload: Json<MandatoryPayload>) -> String {
format!( format!(
"you asked for the mandatory query params: {:#?} and mandatory body: {:#?}", "you asked for the mandatory query params: {:#?} and mandatory body: {:#?}",
qs, payload qs, payload