pub struct PrepareSendPaymentRequest {
pub payment_request: String,
pub amount: Option<u128>,
pub token_identifier: Option<String>,
pub conversion_options: Option<ConversionOptions>,
pub fee_policy: Option<FeePolicy>,
}Fields§
§payment_request: String§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 should be handled. Defaults to FeesExcluded (fees added on top).
Auto Trait Implementations§
impl Freeze for PrepareSendPaymentRequest
impl RefUnwindSafe for PrepareSendPaymentRequest
impl Send for PrepareSendPaymentRequest
impl Sync for PrepareSendPaymentRequest
impl Unpin for PrepareSendPaymentRequest
impl UnwindSafe for PrepareSendPaymentRequest
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
Mutably borrows from an owned value. Read more
§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> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T in a tonic::Request