pub struct PrepareReceiveResponse {
pub payment_method: PaymentMethod,
pub payer_amount_sat: Option<u64>,
pub fees_sat: u64,
pub min_payer_amount_sat: Option<u64>,
pub max_payer_amount_sat: Option<u64>,
pub swapper_feerate: Option<f64>,
}
Expand description
Returned when calling crate::sdk::LiquidSdk::prepare_receive_payment.
Fields§
§payment_method: PaymentMethod
§payer_amount_sat: Option<u64>
§fees_sat: u64
Generally represents the total fees that would be paid to send or receive this payment.
In case of Zero-Amount Receive Chain swaps, the swapper service fee (swapper_feerate
times
the amount) is paid in addition to fees_sat
. The swapper service feerate is already known
in the beginning, but the exact swapper service fee will only be known when the
payer_amount_sat
is known.
In all other types of swaps, the swapper service fee is included in fees_sat
.
min_payer_amount_sat: Option<u64>
The minimum amount the payer can send for this swap to succeed.
When the method is PaymentMethod::LiquidAddress, this is empty.
max_payer_amount_sat: Option<u64>
The maximum amount the payer can send for this swap to succeed.
When the method is PaymentMethod::LiquidAddress, this is empty.
swapper_feerate: Option<f64>
The percentage of the sent amount that will count towards the service fee.
When the method is PaymentMethod::LiquidAddress, this is empty.
Trait Implementations§
source§impl Debug for PrepareReceiveResponse
impl Debug for PrepareReceiveResponse
source§impl IntoDart for PrepareReceiveResponse
impl IntoDart for PrepareReceiveResponse
source§impl IntoIntoDart<PrepareReceiveResponse> for PrepareReceiveResponse
impl IntoIntoDart<PrepareReceiveResponse> for PrepareReceiveResponse
fn into_into_dart(self) -> PrepareReceiveResponse
source§impl Serialize for PrepareReceiveResponse
impl Serialize for PrepareReceiveResponse
impl IntoDartExceptPrimitive for PrepareReceiveResponse
Auto Trait Implementations§
impl Freeze for PrepareReceiveResponse
impl RefUnwindSafe for PrepareReceiveResponse
impl Send for PrepareReceiveResponse
impl Sync for PrepareReceiveResponse
impl Unpin for PrepareReceiveResponse
impl UnwindSafe for PrepareReceiveResponse
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
§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