Expand description
Turn a Serialize struct into OData URL query pairs.
A minimal no_std serde serializer that flattens a flat struct of
scalars, options and sequences into (key, value) string pairs ready
for url’s query_pairs_mut().extend_pairs(...). Keys come from the
struct field names, so a params struct renaming its fields to the
OData system query options ($top, $select, $filter, …) yields
the Graph query keys for free; None and empty sequences produce
nothing, and a sequence produces one repeated-key pair per element.
Structs§
- Msgraph
Query Error - Error raised when a value cannot be flattened into query pairs.
Functions§
- to_
query_ pairs - Serialize
valueinto a list of URL query(key, value)pairs.