Open wuerges opened 5 months ago
Dear samscott89, Please consider this pull request.
This PR adds support for deserializing queries into ordered maps, such as IndexMap.
IndexMap
It adds a new feature, called indexmap, that replaces the BTreeMap used internall by serd_qs with an IndexMap.
indexmap
BTreeMap
serd_qs
Sometimes the order of the keys in the query is important. On example is sorting. What if you want to sort by one field, and then by other?
There's a new test. It parses a two queries into a map. The queries are almost the same, but the order of the keys is swapped.
Hey, this is exactly what I need! Any chance this will be merged soon?
Dear samscott89, Please consider this pull request.
What it does?
This PR adds support for deserializing queries into ordered maps, such as
IndexMap
.How?
It adds a new feature, called
indexmap
, that replaces theBTreeMap
used internall byserd_qs
with anIndexMap
.Why?
Sometimes the order of the keys in the query is important. On example is sorting. What if you want to sort by one field, and then by other?
Was it tested?
There's a new test. It parses a two queries into a map. The queries are almost the same, but the order of the keys is swapped.