pub struct OnchainOutgoingPaymentOptions {
pub address: String,
pub amount: Amount<CurrencyUnit>,
pub max_fee_amount: Option<Amount<CurrencyUnit>>,
pub quote_id: QuoteId,
pub fee_index: Option<u32>,
pub metadata: Option<String>,
}Expand description
Options for onchain outgoing payments
Fields§
§address: StringBitcoin address to send to
amount: Amount<CurrencyUnit>Payment amount
max_fee_amount: Option<Amount<CurrencyUnit>>Maximum fee amount allowed for the payment
quote_id: QuoteIdOpaque stable identifier supplied by the mint.
The mint generates this value and uses it to correlate the quote with
subsequent make_payment and check_outgoing_payment calls. Backends
MUST NOT synthesize or modify this value. Backends MUST persist it
(for example as the send intent id) and echo it verbatim in
PaymentQuoteResponse::request_lookup_id and
MakePaymentResponse::payment_lookup_id as
PaymentIdentifier::QuoteId(..). The mint layer validates the echo
and will reject quotes whose backend response disagrees with the
supplied quote_id (see
Error::OnchainQuoteLookupIdMismatch).
fee_index: Option<u32>Selected fee option index (mirrors the quote’s chosen fee_options[i].fee_index)
metadata: Option<String>Opaque metadata as a JSON string for future extensions
Trait Implementations§
Source§impl Clone for OnchainOutgoingPaymentOptions
impl Clone for OnchainOutgoingPaymentOptions
Source§fn clone(&self) -> OnchainOutgoingPaymentOptions
fn clone(&self) -> OnchainOutgoingPaymentOptions
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreimpl Eq for OnchainOutgoingPaymentOptions
Source§impl Hash for OnchainOutgoingPaymentOptions
impl Hash for OnchainOutgoingPaymentOptions
Source§impl PartialEq for OnchainOutgoingPaymentOptions
impl PartialEq for OnchainOutgoingPaymentOptions
Source§fn eq(&self, other: &OnchainOutgoingPaymentOptions) -> bool
fn eq(&self, other: &OnchainOutgoingPaymentOptions) -> bool
self and other values to be equal, and is used by ==.