Struct breez_sdk_core::FullReverseSwapInfo
source · pub struct FullReverseSwapInfo {
pub id: String,
pub created_at_block_height: u32,
pub preimage: Vec<u8>,
pub private_key: Vec<u8>,
pub claim_pubkey: String,
pub timeout_block_height: u32,
pub invoice: String,
pub redeem_script: String,
pub onchain_amount_sat: u64,
pub sat_per_vbyte: Option<u32>,
pub receive_amount_sat: Option<u64>,
pub cache: ReverseSwapInfoCached,
}
Expand description
Details of past or ongoing reverse swaps, as stored in the Breez local DB
Fields§
§id: String
The reverse swap ID, as reported by the Boltz API in case of a successful creation
created_at_block_height: u32
The blockheight at the moment the reverse swap was created
preimage: Vec<u8>
Locally generated preimage, revealed in the last step of the reverse swap
private_key: Vec<u8>
Locally generated private key, used to sign the claim tx
claim_pubkey: String
On-chain destination address, to which the reverse swap will finally send funds to
timeout_block_height: u32
§invoice: String
The HODL invoice
redeem_script: String
§onchain_amount_sat: u64
Amount of sats that will be locked.
The final amount sent will be this value minus the claim tx fees.
sat_per_vbyte: Option<u32>
User-specified feerate for the claim tx.
Used for backward-compatibility with older rev swaps. Superseded by receive_amount_sat
.
receive_amount_sat: Option<u64>
Amount that will be received onchain in the destination address, at the end of the reverse swap.
cache: ReverseSwapInfoCached
Trait Implementations§
source§impl Clone for FullReverseSwapInfo
impl Clone for FullReverseSwapInfo
source§fn clone(&self) -> FullReverseSwapInfo
fn clone(&self) -> FullReverseSwapInfo
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for FullReverseSwapInfo
impl Debug for FullReverseSwapInfo
source§impl<'de> Deserialize<'de> for FullReverseSwapInfo
impl<'de> Deserialize<'de> for FullReverseSwapInfo
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 PartialEq for FullReverseSwapInfo
impl PartialEq for FullReverseSwapInfo
source§impl Serialize for FullReverseSwapInfo
impl Serialize for FullReverseSwapInfo
impl Eq for FullReverseSwapInfo
impl StructuralPartialEq for FullReverseSwapInfo
Auto Trait Implementations§
impl Freeze for FullReverseSwapInfo
impl RefUnwindSafe for FullReverseSwapInfo
impl Send for FullReverseSwapInfo
impl Sync for FullReverseSwapInfo
impl Unpin for FullReverseSwapInfo
impl UnwindSafe for FullReverseSwapInfo
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
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