pub enum PaidBolt12Invoice {
Bolt12Invoice(Bolt12Invoice),
StaticInvoice(StaticInvoice),
}Expand description
The BOLT 12 invoice that was paid, surfaced in Event::PaymentSent::bolt12_invoice.
Variants§
Bolt12Invoice(Bolt12Invoice)
The BOLT 12 invoice specified by the BOLT 12 specification, allowing the user to perform proof of payment.
StaticInvoice(StaticInvoice)
The Static invoice, used in the async payment specification update proposal, where the user cannot perform proof of payment.
Trait Implementations§
Source§impl Clone for PaidBolt12Invoice
impl Clone for PaidBolt12Invoice
Source§fn clone(&self) -> PaidBolt12Invoice
fn clone(&self) -> PaidBolt12Invoice
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for PaidBolt12Invoice
impl Debug for PaidBolt12Invoice
Source§impl Hash for PaidBolt12Invoice
impl Hash for PaidBolt12Invoice
Source§impl PartialEq for PaidBolt12Invoice
impl PartialEq for PaidBolt12Invoice
Source§impl Readable for PaidBolt12Invoice
impl Readable for PaidBolt12Invoice
Source§impl Writeable for PaidBolt12Invoice
impl Writeable for PaidBolt12Invoice
impl Eq for PaidBolt12Invoice
impl StructuralPartialEq for PaidBolt12Invoice
Auto Trait Implementations§
impl Freeze for PaidBolt12Invoice
impl RefUnwindSafe for PaidBolt12Invoice
impl Send for PaidBolt12Invoice
impl Sync for PaidBolt12Invoice
impl Unpin for PaidBolt12Invoice
impl UnwindSafe for PaidBolt12Invoice
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<T> LengthReadable for Twhere
T: Readable,
impl<T> LengthReadable for Twhere
T: Readable,
Source§fn read_from_fixed_length_buffer<R>(reader: &mut R) -> Result<T, DecodeError>where
R: LengthLimitedRead,
fn read_from_fixed_length_buffer<R>(reader: &mut R) -> Result<T, DecodeError>where
R: LengthLimitedRead,
Reads a
Self in from the given LengthLimitedRead.