pub enum PaymentDetails {
Spark,
Lightning {
description: Option<String>,
preimage: Option<String>,
invoice: String,
payment_hash: String,
destination_pubkey: String,
lnurl_pay_info: Option<LnurlPayInfo>,
},
Withdraw {
tx_id: String,
},
Deposit {
tx_id: String,
},
}
Variants§
Spark
Lightning
Fields
§
invoice: String
Represents 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
§
lnurl_pay_info: Option<LnurlPayInfo>
Lnurl payment information if this was an lnurl payment.
Withdraw
Deposit
Trait Implementations§
Source§impl Clone for PaymentDetails
impl Clone for PaymentDetails
Source§fn clone(&self) -> PaymentDetails
fn clone(&self) -> PaymentDetails
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 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>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl FromSql for PaymentDetails
impl FromSql for PaymentDetails
Source§fn column_result(value: ValueRef<'_>) -> FromSqlResult<Self>
fn column_result(value: ValueRef<'_>) -> FromSqlResult<Self>
Converts SQLite value into Rust value.
Source§impl Serialize for PaymentDetails
impl Serialize for PaymentDetails
Source§impl ToSql for PaymentDetails
impl ToSql for PaymentDetails
Auto Trait Implementations§
impl Freeze for PaymentDetails
impl RefUnwindSafe for PaymentDetails
impl Send for PaymentDetails
impl Sync for PaymentDetails
impl Unpin for PaymentDetails
impl UnwindSafe for PaymentDetails
Blanket Implementations§
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§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
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> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T
in a tonic::Request