Skip to main content

substitute_parameters

Function substitute_parameters 

Source
pub fn substitute_parameters<S: BuildHasher>(
    template: &str,
    arguments: &Option<HashMap<String, String, S>>,
) -> String
Expand description

Substitute parameters in a prompt template Supports named parameters using the format $parameter_name