Skip to main content

fill

Function fill 

Source
pub fn fill(
    body: &Body,
    vars: &BTreeMap<Placeholder, Value>,
    strict: bool,
    budget: &mut Budget,
) -> Result<Value, String>
Expand description

body filled from vars, within budget. With strict (a task’s own send), a path into data that the data lacks is an error; otherwise it fills as null (empty in text).

§Errors

Past the budget; with strict, a path into data that isn’t there. The message says which.