pub struct PayInvoiceRequest {
pub invoice: Invoice,
pub fallback_amount: Option<Amount>,
pub note: Option<BoundedNote>,
pub payer_note: Option<BoundedNote>,
}Fields§
§invoice: InvoiceThe invoice we want to pay.
fallback_amount: Option<Amount>Specifies the amount we will pay if the invoice to be paid is
amountless. This field must be Some for amountless invoices.
note: Option<BoundedNote>An optional personal note for this payment, useful if the receiver-provided description is insufficient.
payer_note: Option<BoundedNote>An optional payer note to persist with this outbound payment. For
LNURL-pay, this is the LUD-12 comment sent during invoice
negotiation.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for PayInvoiceRequest
impl<'de> Deserialize<'de> for PayInvoiceRequest
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for PayInvoiceRequest
impl RefUnwindSafe for PayInvoiceRequest
impl Send for PayInvoiceRequest
impl Sync for PayInvoiceRequest
impl Unpin for PayInvoiceRequest
impl UnsafeUnpin for PayInvoiceRequest
impl UnwindSafe for PayInvoiceRequest
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more