Function pay_invoice

Source
pub async fn pay_invoice(
    invoice: Bolt11Invoice,
    amount: Option<Amount>,
    comment: Option<String>,
    no_sync: bool,
    wallet: &Wallet,
) -> Result<Preimage>