Struct breez_sdk_core::ReverseSwapPairInfo
source · pub struct ReverseSwapPairInfo {
pub min: u64,
pub max: u64,
pub fees_hash: String,
pub fees_percentage: f64,
pub fees_lockup: u64,
pub fees_claim: u64,
pub total_fees: Option<u64>,
}
Expand description
Details about the reverse swap fees and parameters, at this point in time
Fields§
§min: u64
Minimum amount of sats a reverse swap is allowed to have given the current feerate conditions
max: u64
Maximum amount of sats a reverse swap is allowed to have given the current feerate conditions
fees_hash: String
Hash of the pair info JSON
fees_percentage: f64
Percentage fee for the reverse swap service
fees_lockup: u64
Miner fees in sats for locking up funds
fees_claim: u64
Miner fees in sats for claiming funds. Estimate or exact value, depending on the request args.
total_fees: Option<u64>
Total fees for the reverse swap, in sats, based on the given send amount.
The field is set only when the ReverseSwapFeesRequest send_amount_sat
is known.
If the ReverseSwapFeesRequest has the claim_tx_feerate
empty, this is an estimate. If
the claim_tx_feerate
is set, this is the exact value of the total reverse swap fees.
Trait Implementations§
source§impl Clone for ReverseSwapPairInfo
impl Clone for ReverseSwapPairInfo
source§fn clone(&self) -> ReverseSwapPairInfo
fn clone(&self) -> ReverseSwapPairInfo
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for ReverseSwapPairInfo
impl Debug for ReverseSwapPairInfo
source§impl IntoDart for ReverseSwapPairInfo
impl IntoDart for ReverseSwapPairInfo
source§impl IntoIntoDart<ReverseSwapPairInfo> for ReverseSwapPairInfo
impl IntoIntoDart<ReverseSwapPairInfo> for ReverseSwapPairInfo
fn into_into_dart(self) -> Self
source§impl PartialEq for ReverseSwapPairInfo
impl PartialEq for ReverseSwapPairInfo
source§impl Serialize for ReverseSwapPairInfo
impl Serialize for ReverseSwapPairInfo
impl IntoDartExceptPrimitive for ReverseSwapPairInfo
impl StructuralPartialEq for ReverseSwapPairInfo
Auto Trait Implementations§
impl Freeze for ReverseSwapPairInfo
impl RefUnwindSafe for ReverseSwapPairInfo
impl Send for ReverseSwapPairInfo
impl Sync for ReverseSwapPairInfo
impl Unpin for ReverseSwapPairInfo
impl UnwindSafe for ReverseSwapPairInfo
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
§impl<T> BoxIntoDart for Twhere
T: IntoDart,
impl<T> BoxIntoDart for Twhere
T: IntoDart,
fn box_into_dart(self: Box<T>) -> DartCObject
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
.§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