In the actix-web documentation is only an example of how to receive uniquely named query params.
But how can I receive multiple query params of the same name? For example:
http://localhost:8088/test?id=1&id=2&id=3
How do I have to change following code so it accepts multiple ids and how can I read them?
use actix_web::web;
use serde::Deserialize;
#[derive(Deserialize)]
struct Info {
id: String,
}
#[get("/test")]
async fn index(info: web::Query<Info>) -> impl Responder {
println!("Id: {}!", info.id);
"ok"
}