pub struct PayInvoiceRequest {
pub invoice: Invoice,
pub fallback_amount: Option<Amount>,
pub note: Option<String>,
pub payer_note: Option<String>,
}Expand description
A request to pay a BOLT 11 invoice.
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 set if the invoice is amountless.
note: Option<String>An optional personal note for this payment. The receiver will not see this note. If provided, it must be non-empty and no longer than 200 chars / 512 UTF-8 bytes.
payer_note: Option<String>An optional note that was sent to the receiver out-of-band via
LNURL-pay that is stored with this outbound payment. Unlike note,
this is visible to the recipient. If provided, it must be non-empty and
no longer than 200 chars / 512 UTF-8 bytes.
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
Source§impl Serialize for PayInvoiceRequest
impl Serialize for PayInvoiceRequest
Auto Trait Implementations§
impl Freeze for PayInvoiceRequest
impl RefUnwindSafe for PayInvoiceRequest
impl Send for PayInvoiceRequest
impl Sync for PayInvoiceRequest
impl Unpin for PayInvoiceRequest
impl UnwindSafe for PayInvoiceRequest
Blanket Implementations§
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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