Rocket/contrib/codegen
Sergio Benitez c45a83897f Allow several 'field' attributes in all derives.
In particular, 'FromFormField' and 'UriDisplayQuery' now allow any
number of form 'field' attributes. For the former, multiple 'value's are
allowed, all of which are used to match against incoming fields - any
match wins. For the latter, multiple 'name' and 'value's are allowed;
the first of each is used to render the query value.

Additionally, 'UriDisplayQuery' can now be derived for C-like enums.
This brings the derive to parity with 'FromFormValue' and allows their
unified application on C-like enums.

Resolves #843.
2021-04-07 23:09:05 -07:00
..
src Remove second lifetime from 'FromRequest'. 2021-03-14 19:57:59 -07:00
tests Remove second lifetime from 'FromRequest'. 2021-03-14 19:57:59 -07:00
Cargo.toml Allow several 'field' attributes in all derives. 2021-04-07 23:09:05 -07:00