pub enum PaymentDetails {
Lightning {
swap_id: String,
description: String,
liquid_expiration_blockheight: u32,
preimage: Option<String>,
invoice: Option<String>,
bolt12_offer: Option<String>,
payment_hash: Option<String>,
destination_pubkey: Option<String>,
lnurl_info: Option<LnUrlInfo>,
refund_tx_id: Option<String>,
refund_tx_amount_sat: Option<u64>,
},
Liquid {
destination: String,
description: String,
},
Bitcoin {
swap_id: String,
description: String,
liquid_expiration_blockheight: Option<u32>,
bitcoin_expiration_blockheight: Option<u32>,
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
§
liquid_expiration_blockheight: u32
The height of the block at which the swap will no longer be valid
Liquid
Direct onchain payment to a Liquid address
Fields
Bitcoin
Swapping to or from the Bitcoin chain
Fields
§
liquid_expiration_blockheight: Option<u32>
The height of the Liquid block at which the swap will no longer be valid It should always be populated in case of an outgoing chain swap
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<T> AnyEq for T
impl<T> AnyEq 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
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> ⓘ
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
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