pub struct PrepareSendPaymentRequest {
pub payment_request: PaymentRequest,
pub amount: Option<u128>,
pub token_identifier: Option<String>,
pub conversion_options: Option<ConversionOptions>,
pub fee_policy: Option<FeePolicy>,
}Fields§
§payment_request: PaymentRequest§amount: Option<u128>The amount to send. Optional for payment requests with embedded amounts (e.g., Spark/Bolt11 invoices with amounts). Required for Spark addresses, Bitcoin addresses, and amountless invoices. Denominated in satoshis for Bitcoin payments, or token base units for token payments.
token_identifier: Option<String>Optional token identifier for token payments. Absence indicates that the payment is a Bitcoin payment.
conversion_options: Option<ConversionOptions>If provided, the payment will include a conversion step before sending the payment
fee_policy: Option<FeePolicy>How fees are handled. See FeePolicy. Defaults to FeesExcluded.
Ignored on cross-chain AMM-conversion sends (whether the conversion was
explicitly requested or auto-injected by stable balance) — fees come
out of the converted sats. Bolt11 and Bitcoin AMM-conversion sends
still respect this field by sizing the conversion to cover fees. The
prepare response’s fee_policy reflects what was actually applied.
Auto Trait Implementations§
impl Freeze for PrepareSendPaymentRequest
impl RefUnwindSafe for PrepareSendPaymentRequest
impl Send for PrepareSendPaymentRequest
impl Sync for PrepareSendPaymentRequest
impl Unpin for PrepareSendPaymentRequest
impl UnsafeUnpin for PrepareSendPaymentRequest
impl UnwindSafe for PrepareSendPaymentRequest
Blanket Implementations§
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>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> 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