pub enum PaymentDetails {
Spark {
invoice_details: Option<SparkInvoicePaymentDetails>,
htlc_details: Option<SparkHtlcDetails>,
conversion_info: Option<ConversionInfo>,
},
Token {
metadata: TokenMetadata,
tx_hash: String,
tx_type: TokenTransactionType,
invoice_details: Option<SparkInvoicePaymentDetails>,
conversion_info: Option<ConversionInfo>,
},
Lightning {
description: Option<String>,
invoice: String,
destination_pubkey: String,
htlc_details: SparkHtlcDetails,
lnurl_pay_info: Option<LnurlPayInfo>,
lnurl_withdraw_info: Option<LnurlWithdrawInfo>,
lnurl_receive_metadata: Option<LnurlReceiveMetadata>,
conversion_info: Option<ConversionInfo>,
},
Withdraw {
tx_id: String,
},
Deposit {
tx_id: String,
vout: u32,
},
}Variants§
Spark
Fields
invoice_details: Option<SparkInvoicePaymentDetails>The invoice details if the payment fulfilled a spark invoice
htlc_details: Option<SparkHtlcDetails>The HTLC transfer details if the payment fulfilled an HTLC transfer
conversion_info: Option<ConversionInfo>The information for a conversion
Token
Fields
metadata: TokenMetadatatx_type: TokenTransactionTypeinvoice_details: Option<SparkInvoicePaymentDetails>The invoice details if the payment fulfilled a spark invoice
conversion_info: Option<ConversionInfo>The information for a conversion
Lightning
Fields
invoice: StringRepresents the Bolt11/Bolt12 invoice associated with a payment In the case of a Send payment, this is the invoice paid by the user In the case of a Receive payment, this is the invoice paid to the user
htlc_details: SparkHtlcDetailsThe HTLC transfer details
lnurl_pay_info: Option<LnurlPayInfo>Lnurl payment information if this was an lnurl payment.
lnurl_withdraw_info: Option<LnurlWithdrawInfo>Lnurl withdrawal information if this was an lnurl payment.
lnurl_receive_metadata: Option<LnurlReceiveMetadata>Lnurl receive information if this was a received lnurl payment.
conversion_info: Option<ConversionInfo>The information for a conversion — populated when this Lightning payment is the source leg of a cross-chain conversion (e.g. a Boltz reverse swap paying a hold invoice).
Withdraw
Deposit
Trait Implementations§
Source§impl Clone for PaymentDetails
impl Clone for PaymentDetails
Source§fn clone(&self) -> PaymentDetails
fn clone(&self) -> PaymentDetails
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for PaymentDetails
impl Debug for PaymentDetails
Source§impl<'de> Deserialize<'de> for PaymentDetails
impl<'de> Deserialize<'de> for PaymentDetails
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>,
Auto Trait Implementations§
impl Freeze for PaymentDetails
impl RefUnwindSafe for PaymentDetails
impl Send for PaymentDetails
impl Sync for PaymentDetails
impl Unpin for PaymentDetails
impl UnsafeUnpin for PaymentDetails
impl UnwindSafe for PaymentDetails
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
T in a tonic::Request