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: u64Minimum amount of sats a reverse swap is allowed to have given the current feerate conditions
max: u64Maximum amount of sats a reverse swap is allowed to have given the current feerate conditions
fees_hash: StringHash of the pair info JSON
fees_percentage: f64Percentage fee for the reverse swap service
fees_lockup: u64Miner fees in sats for locking up funds
fees_claim: u64Miner 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) -> ReverseSwapPairInfo
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§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> 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