Expand description
Query-string handling: ?tool=pi&bucket=daily&window=month.
Structs§
- Usage
Params - Raw, optional query-string values. Unknown values fall back to defaults instead of failing the request, so a stale bookmark never 400s.
Constants§
- WINDOW_
CHOICES - Window choices offered by the interactive UI.
automeans “the chosen bucket’s natural window” (seeBucket::default_window).
Functions§
- parse
- Parse optional string parameters into a
Query, ignoring invalid values. - parse_
metric - The chart metric from an optional string (unknown values fall back to tokens).
- parse_
selection - A selection from optional strings; empty strings mean “nothing selected”.
- pick_
currency - The currency to show: an explicit, valid
requestedcode wins (with the user’s own rate fromratesif they set one), otherwisesaved.