set

Function set 

Source
pub fn set(dict: Value, key: String, val: Value) -> Result<Value, Error>
Expand description

Set a key in a dict (returns new dict, original unchanged)

Usage: {{ set(mydict, “newkey”, “newvalue”) }}