pub struct SendPaymentData {Show 20 fields
pub target_pubkey: Pubkey,
pub amount: u128,
pub payment_hash: Hash256,
pub invoice: Option<String>,
pub final_tlc_expiry_delta: u64,
pub tlc_expiry_limit: u64,
pub timeout: Option<u64>,
pub max_fee_amount: Option<u128>,
pub max_parts: Option<u64>,
pub keysend: bool,
pub udt_type_script: Option<Script>,
pub preimage: Option<Hash256>,
pub custom_records: Option<PaymentCustomRecords>,
pub allow_self_payment: bool,
pub hop_hints: Vec<HopHint>,
pub router: Vec<RouterHop>,
pub allow_mpp: bool,
pub dry_run: bool,
pub trampoline_hops: Option<Vec<Pubkey>>,
pub trampoline_context: Option<TrampolineContext>,
}Expand description
Data for sending a payment.
Fields§
§target_pubkey: Pubkey§amount: u128§payment_hash: Hash256§invoice: Option<String>§final_tlc_expiry_delta: u64§tlc_expiry_limit: u64§timeout: Option<u64>§max_fee_amount: Option<u128>§max_parts: Option<u64>The number of parts for the payment, only used for multi-part payment
keysend: bool§udt_type_script: Option<Script>§preimage: Option<Hash256>§custom_records: Option<PaymentCustomRecords>§allow_self_payment: bool§hop_hints: Vec<HopHint>§router: Vec<RouterHop>§allow_mpp: boolThis flag indicates the invoice whether to allow multi-path payment.
dry_run: bool§trampoline_hops: Option<Vec<Pubkey>>Optional explicit trampoline hops.
When set to a non-empty list [t1, t2, ...], routing will only find a path from the
payer to t1, and the inner trampoline onion will encode t1 -> t2 -> ... -> final.
trampoline_context: Option<TrampolineContext>Implementations§
Trait Implementations§
Source§impl Clone for SendPaymentData
impl Clone for SendPaymentData
Source§fn clone(&self) -> SendPaymentData
fn clone(&self) -> SendPaymentData
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for SendPaymentData
impl Debug for SendPaymentData
Source§impl<'de> Deserialize<'de> for SendPaymentData
impl<'de> Deserialize<'de> for SendPaymentData
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl !Freeze for SendPaymentData
impl RefUnwindSafe for SendPaymentData
impl Send for SendPaymentData
impl Sync for SendPaymentData
impl Unpin for SendPaymentData
impl UnsafeUnpin for SendPaymentData
impl UnwindSafe for SendPaymentData
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
Mutably borrows from an owned value. Read more