Skip to main content

Module multi_query

Module multi_query 

Source
Expand description

Query-string extraction for endpoints whose filters accept several values.

Macros§

deserialize_parsed 🔒
Parses a scalar field’s value out of its string, the way serde_urlencoded does: a query string carries no types, so limit=50 has to reach a u32 field as a number.

Structs§

MultiQuery
A handler’s query parameters, where a parameter given more than once reads as a list.
QueryDeserializer 🔒
Every parameter of one query string, keyed by name, in the order the values were given.
Values 🔒
The values one parameter was given, never empty.

Functions§

comma_separated 🔒
Splits one raw value on commas, dropping empty parts, so ?state=a,b and ?state=a&state=b mean the same thing.
from_query_string
Deserializes T from a raw query string under MultiQuery’s rules.