pub struct OptionalOfferPaymentParams {
pub payer_note: Option<String>,
pub route_params_config: RouteParametersConfig,
pub retry_strategy: Retry,
}Expand description
Optional arguments to ChannelManager::pay_for_offer
.
These fields will often not need to be set, and the provided Self::default can be used.
Fields§
§payer_note: Option<String>A note that is communicated to the recipient about this payment via
InvoiceRequest::payer_note.
route_params_config: RouteParametersConfigPathfinding options which tweak how the path is constructed to the recipient.
retry_strategy: RetryThe number of tries or time during which we’ll retry this payment if some paths to the recipient fail.
Once the retry limit is reached, further path failures will not be retried and the payment
will ultimately fail once all pending paths have failed (generating an
Event::PaymentFailed).
Trait Implementations§
Auto Trait Implementations§
impl Freeze for OptionalOfferPaymentParams
impl RefUnwindSafe for OptionalOfferPaymentParams
impl Send for OptionalOfferPaymentParams
impl Sync for OptionalOfferPaymentParams
impl Unpin for OptionalOfferPaymentParams
impl UnwindSafe for OptionalOfferPaymentParams
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