You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Struct update rest pattern syntax support for named bindings #591
Activity
malobre commentedon Dec 16, 2021
I love this suggestion !
In the context of web APIs, I often end up with a struct containing all the request parameters, something like this:
Followed by some queries such as:
The suggested syntax would greatly reduce repetitions:
feat(sqlx-macros): accept `name = expr` and `..rest` in `args = [...]`
feat(sqlx-macros): accept `name = expr` and `..rest` in `args = [...]`
feat(sqlx-macros): accept `name = expr` and `..rest` in `args = [...]`
feat(sqlx-macros): accept `name = expr` and `..rest` in `args = [...]`
feat(sqlx-macros): accept `name = expr` and `..rest` in `args = [...]`