pub fn render_invoice( template: &str, inv: &Invoice, issuer: &Issuer, client: &Client, out_path: &Path, ) -> Result<()>