Struct breez_sdk_core::LnPaymentDetails
source · pub struct LnPaymentDetails {Show 16 fields
pub payment_hash: String,
pub label: String,
pub destination_pubkey: String,
pub payment_preimage: String,
pub keysend: bool,
pub bolt11: String,
pub open_channel_bolt11: Option<String>,
pub lnurl_success_action: Option<SuccessActionProcessed>,
pub lnurl_pay_domain: Option<String>,
pub lnurl_pay_comment: Option<String>,
pub ln_address: Option<String>,
pub lnurl_metadata: Option<String>,
pub lnurl_withdraw_endpoint: Option<String>,
pub swap_info: Option<SwapInfo>,
pub reverse_swap_info: Option<ReverseSwapInfo>,
pub pending_expiration_block: Option<u32>,
}
Expand description
Details of a LN payment, as included in a Payment
Fields§
§payment_hash: String
§label: String
§destination_pubkey: String
§payment_preimage: String
§keysend: bool
§bolt11: String
§open_channel_bolt11: Option<String>
Only set for PaymentType::Received, payments which require to open a channel. Represents the actual invoice paid by the sender
lnurl_success_action: Option<SuccessActionProcessed>
Only set for PaymentType::Sent payments that are part of a LNURL-pay workflow where the endpoint returns a success action
lnurl_pay_domain: Option<String>
Only set for PaymentType::Sent payments if it is not a payment to a Lightning Address
lnurl_pay_comment: Option<String>
Only set for PaymentType::Sent payments if the user sent the comment using LNURL-pay
ln_address: Option<String>
Only set for PaymentType::Sent payments that are sent to a Lightning Address
lnurl_metadata: Option<String>
Only set for PaymentType::Sent payments where the receiver endpoint returned LNURL metadata
lnurl_withdraw_endpoint: Option<String>
Only set for PaymentType::Received payments that were received as part of LNURL-withdraw
swap_info: Option<SwapInfo>
Only set for PaymentType::Received payments that were received in the context of a swap
reverse_swap_info: Option<ReverseSwapInfo>
Only set for PaymentType::Sent payments that were sent in the context of a reverse swap
pending_expiration_block: Option<u32>
Only set for PaymentStatus::Pending payments that are inflight.
Trait Implementations§
source§impl Clone for LnPaymentDetails
impl Clone for LnPaymentDetails
source§fn clone(&self) -> LnPaymentDetails
fn clone(&self) -> LnPaymentDetails
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for LnPaymentDetails
impl Debug for LnPaymentDetails
source§impl<'de> Deserialize<'de> for LnPaymentDetails
impl<'de> Deserialize<'de> for LnPaymentDetails
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>,
source§impl IntoDart for LnPaymentDetails
impl IntoDart for LnPaymentDetails
source§impl IntoIntoDart<LnPaymentDetails> for LnPaymentDetails
impl IntoIntoDart<LnPaymentDetails> for LnPaymentDetails
fn into_into_dart(self) -> Self
source§impl PartialEq for LnPaymentDetails
impl PartialEq for LnPaymentDetails
source§impl Serialize for LnPaymentDetails
impl Serialize for LnPaymentDetails
impl Eq for LnPaymentDetails
impl IntoDartExceptPrimitive for LnPaymentDetails
impl StructuralPartialEq for LnPaymentDetails
Auto Trait Implementations§
impl Freeze for LnPaymentDetails
impl RefUnwindSafe for LnPaymentDetails
impl Send for LnPaymentDetails
impl Sync for LnPaymentDetails
impl Unpin for LnPaymentDetails
impl UnwindSafe for LnPaymentDetails
Blanket Implementations§
§impl<T> AnySync for T
impl<T> AnySync for T
§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
§impl<T> BoxIntoDart for Twhere
T: IntoDart,
impl<T> BoxIntoDart for Twhere
T: IntoDart,
fn box_into_dart(self: Box<T>) -> DartCObject
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit
)§impl<T> Downcast for Twhere
T: AsAny + ?Sized,
impl<T> Downcast for Twhere
T: AsAny + ?Sized,
§fn downcast_ref<T>(&self) -> Option<&T>where
T: AsAny,
fn downcast_ref<T>(&self) -> Option<&T>where
T: AsAny,
Any
.§fn downcast_mut<T>(&mut self) -> Option<&mut T>where
T: AsAny,
fn downcast_mut<T>(&mut self) -> Option<&mut T>where
T: AsAny,
Any
.source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key
and return true
if they are equal.§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key
and return true
if they are equal.§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> 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>
T
in a tonic::Request