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