render_prompt

Function render_prompt 

Source
pub fn render_prompt<T: Serialize>(
    template: &str,
    context: T,
) -> Result<String, Error>
Expand description

Renders a prompt from a template string and a serializable context.

This is the underlying function for the prompt! macro.