pub fn render_prompt<T: Serialize>( template: &str, context: T, ) -> Result<String, Error>
Renders a prompt from a template string and a serializable context.
This is the underlying function for the prompt! macro.
prompt!