Struct breez_sdk_liquid::model::PaymentSwapData
source · pub struct PaymentSwapData {Show 13 fields
pub swap_id: String,
pub swap_type: PaymentSwapType,
pub created_at: u32,
pub preimage: Option<String>,
pub bolt11: Option<String>,
pub payment_hash: Option<String>,
pub description: String,
pub payer_amount_sat: u64,
pub receiver_amount_sat: u64,
pub refund_tx_id: Option<String>,
pub refund_tx_amount_sat: Option<u64>,
pub claim_address: Option<String>,
pub status: PaymentState,
}
Fields§
§swap_id: String
§swap_type: PaymentSwapType
§created_at: u32
Swap creation timestamp
preimage: Option<String>
§bolt11: Option<String>
§payment_hash: Option<String>
§description: String
§payer_amount_sat: u64
Amount sent by the swap payer
receiver_amount_sat: u64
Amount received by the swap receiver
refund_tx_id: Option<String>
§refund_tx_amount_sat: Option<u64>
§claim_address: Option<String>
Present only for chain swaps. In case of an outgoing chain swap, it’s the Bitcoin address which will receive the funds In case of an incoming chain swap, it’s the Liquid address which will receive the funds
status: PaymentState
Payment status derived from the swap status
Trait Implementations§
source§impl Clone for PaymentSwapData
impl Clone for PaymentSwapData
source§fn clone(&self) -> PaymentSwapData
fn clone(&self) -> PaymentSwapData
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 PaymentSwapData
impl Debug for PaymentSwapData
Auto Trait Implementations§
impl Freeze for PaymentSwapData
impl RefUnwindSafe for PaymentSwapData
impl Send for PaymentSwapData
impl Sync for PaymentSwapData
impl Unpin for PaymentSwapData
impl UnwindSafe for PaymentSwapData
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