Skip to main content

bin_param_locations

Function bin_param_locations 

Source
pub fn bin_param_locations(
    query: &AnalyzedQuery,
    http: &HttpAnnotations,
) -> BTreeMap<String, HttpParamBinding>
Expand description

Decide where each AnalyzedParam is sourced from, falling back from explicit @http_param overrides to inference rules:

  1. explicit binding wins,
  2. name appears as {name} in path → path,
  3. GET/DELETE → query,
  4. POST/PUT/PATCH → body.