pub struct CustomIncomingPaymentOptions {
pub method: String,
pub description: Option<String>,
pub amount: Amount,
pub unix_expiry: Option<u64>,
pub extra_json: Option<String>,
}Expand description
Options for creating a custom incoming payment request
Fields§
§method: StringPayment method name (e.g., “paypal”, “venmo”)
description: Option<String>Optional description for the payment request
amount: AmountAmount for the payment request
unix_expiry: Option<u64>Optional expiry time as Unix timestamp in seconds
extra_json: Option<String>Extra payment-method-specific fields as JSON string
These fields are passed through to the payment processor for method-specific validation (e.g., ehash share).
Trait Implementations§
Source§impl Clone for CustomIncomingPaymentOptions
impl Clone for CustomIncomingPaymentOptions
Source§fn clone(&self) -> CustomIncomingPaymentOptions
fn clone(&self) -> CustomIncomingPaymentOptions
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 CustomIncomingPaymentOptions
impl Debug for CustomIncomingPaymentOptions
Source§impl Hash for CustomIncomingPaymentOptions
impl Hash for CustomIncomingPaymentOptions
Source§impl PartialEq for CustomIncomingPaymentOptions
impl PartialEq for CustomIncomingPaymentOptions
Source§fn eq(&self, other: &CustomIncomingPaymentOptions) -> bool
fn eq(&self, other: &CustomIncomingPaymentOptions) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Eq for CustomIncomingPaymentOptions
impl StructuralPartialEq for CustomIncomingPaymentOptions
Auto Trait Implementations§
impl Freeze for CustomIncomingPaymentOptions
impl RefUnwindSafe for CustomIncomingPaymentOptions
impl Send for CustomIncomingPaymentOptions
impl Sync for CustomIncomingPaymentOptions
impl Unpin for CustomIncomingPaymentOptions
impl UnsafeUnpin for CustomIncomingPaymentOptions
impl UnwindSafe for CustomIncomingPaymentOptions
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