Skip to main content

in_value

Function in_value 

Source
pub fn in_value(
    value: &mut Value,
    file: &Path,
    lookup: &dyn Fn(&str) -> Option<String>,
) -> Result<()>
Expand description

Substitute ${...} in every string inside value, in place.

file is only used to make errors locatable; lookup is the resolver (the real environment layered over .env files, in the order the caller decides).