Function envsubst::substitute
source · pub fn substitute<T>(
template: T,
variables: &HashMap<String, String>
) -> Result<String, Error>where
T: Into<String>,
Expand description
Substitute variables in a template string.
Given an input string template
, replace tokens of the form ${foo}
with
values provided in variables
.