pub enum PaymentDetails {
Lightning {Show 13 fields
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>,
bip353_address: Option<String>,
claim_tx_id: Option<String>,
refund_tx_id: Option<String>,
refund_tx_amount_sat: Option<u64>,
},
Liquid {
destination: String,
description: String,
asset_id: String,
asset_info: Option<AssetInfo>,
lnurl_info: Option<LnUrlInfo>,
bip353_address: Option<String>,
},
Bitcoin {
swap_id: String,
description: String,
auto_accepted_fees: bool,
liquid_expiration_blockheight: Option<u32>,
bitcoin_expiration_blockheight: Option<u32>,
claim_tx_id: Option<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
liquid_expiration_blockheight: u32
The height of the block at which the swap will no longer be valid
invoice: Option<String>
Represents the Bolt11/Bolt12 invoice associated with a payment In the case of a Send payment, this is the invoice paid by the swapper In the case of a Receive payment, this is the invoice paid by the user
Liquid
Direct onchain payment to a Liquid address
Fields
asset_info: Option<AssetInfo>
The asset info derived from the AssetMetadata
Bitcoin
Swapping to or from the Bitcoin chain
Fields
auto_accepted_fees: bool
For an amountless receive swap, this indicates if fees were automatically accepted.
Fees are auto accepted when the swapper proposes fees that are within the initial
estimate, plus the onchain_fee_rate_leeway_sat_per_vbyte
set in the Config, if any.
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
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 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 Send for PaymentDetails
impl Sync for PaymentDetails
impl RefUnwindSafe for PaymentDetails
impl Unpin for PaymentDetails
impl UnwindSafe for PaymentDetails
Blanket Implementations§
§impl<T> AnyEq for T
impl<T> AnyEq for T
§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
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> 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