Leko says to YSITD
#[get("/?<query..>")] fn item_search(query: Query, connection: db::Connection) -> JsonValue { json!(Item::search(query, &connection)) }