pub enum PaymentDetails {
Lightning {
swap_id: String,
description: String,
preimage: Option<String>,
bolt11: Option<String>,
bolt12_offer: Option<String>,
payment_hash: Option<String>,
refund_tx_id: Option<String>,
refund_tx_amount_sat: Option<u64>,
},
Liquid {
destination: String,
description: String,
},
Bitcoin {
swap_id: String,
description: String,
refund_tx_id: Option<String>,
refund_tx_amount_sat: Option<u64>,
},
}
Expand description
The specific details of a payment, depending on its type
Variants§
Lightning
Swapping to or from Lightning
Fields
§
preimage: Option<String>
In case of a Send swap, this is the preimage of the paid invoice (proof of payment).
Liquid
Direct onchain payment to a Liquid address
Fields
Bitcoin
Swapping to or from the Bitcoin chain
Trait Implementations§
source§impl Clone for PaymentDetails
impl Clone for PaymentDetails
source§fn clone(&self) -> PaymentDetails
fn clone(&self) -> PaymentDetails
Returns a copy 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 IntoDart for PaymentDetails
impl IntoDart for PaymentDetails
source§impl IntoIntoDart<PaymentDetails> for PaymentDetails
impl IntoIntoDart<PaymentDetails> for PaymentDetails
fn into_into_dart(self) -> PaymentDetails
source§impl PartialEq for PaymentDetails
impl PartialEq for PaymentDetails
source§impl Serialize for PaymentDetails
impl Serialize for PaymentDetails
impl IntoDartExceptPrimitive for PaymentDetails
impl StructuralPartialEq 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,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)§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>
Wrap the input message
T
in a tonic::Request