(
params: Vec<(String, QueryMatcherDef)>,
)
| 444 | } |
| 445 | |
| 446 | fn flat_param_matchers_to_def( |
| 447 | params: Vec<(String, QueryMatcherDef)>, |
| 448 | ) -> BTreeMap<String, ParamMatcherDef> { |
| 449 | params |
| 450 | .into_iter() |
| 451 | .map(|(key, matcher)| (key, ParamMatcherDef::Matcher(matcher))) |
| 452 | .collect() |
| 453 | } |
| 454 | |
| 455 | // Build one nested params path from a flat key. Collisions such as `a` and |
| 456 | // `a.b` cannot round-trip as nested YAML, so callers fall back to the flat map. |
no outgoing calls
no test coverage detected