Skip to main content

inject_collected

Function inject_collected 

Source
pub fn inject_collected(
    ctx: &mut HashMap<String, Value>,
    collected: &[CollectedDim],
)
Expand description

Enrich a product tuple ctx in place with every collected dimension whose list is available for this tuple, so ${<id>.<alias>} resolves to the list. A collected dim with no entry for the tuple injects an empty list (the consuming request then renders an empty param — the “type has no properties” fallback). Pure.