News for hackers. Stuff that matters.
Re:Actix-web 1.0 – A small, pragmatic, and fast web framewor... by lemmox on Wednesday June 05, 2019 @05:05PM (#20109135)
That syntax refers to fields in a tuple. Path parameters can be deserialized into a type like this:

    [derive(Deserialize)]
    struct HelloWorldParams {
      id: String,
      name: String,
    }
    fn index(info: web::Path<HelloWorldParams>) -> impl Responder {
      format!("Hello {}! id:{}", info.name, info.id)
    }

There are no comments on this comment yet.