Param

Param attribute represents query parameter. It's take the name of the query parameter as argument.

#[param()]

Usage

struct FindUser { #[param("username")] pub name: String }