pub struct WaitForPaymentUpdateRequest {
pub id: PaymentId,
pub after: Option<PaymentUpdatedIndex>,
pub timeout: Option<Duration>,
}Expand description
A request to wait for an update on a specific payment.
Fields§
§id: PaymentIdThe payment’s id.
after: Option<PaymentUpdatedIndex>If Some: Returns the payment’s latest state once
updated_index() > after. Intermediate states may be skipped. To
follow a payment’s updates, pass each returned state’s
Payment::updated_index here.
If None: Returns the payment’s current state, waiting for the payment
to exist if it doesn’t yet.
timeout: Option<Duration>If given, this method will stop waiting after timeout duration has
passed and return an error. If None, this method will wait
indefinitely.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for WaitForPaymentUpdateRequest
impl<'de> Deserialize<'de> for WaitForPaymentUpdateRequest
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 WaitForPaymentUpdateRequest
impl RefUnwindSafe for WaitForPaymentUpdateRequest
impl Send for WaitForPaymentUpdateRequest
impl Sync for WaitForPaymentUpdateRequest
impl Unpin for WaitForPaymentUpdateRequest
impl UnsafeUnpin for WaitForPaymentUpdateRequest
impl UnwindSafe for WaitForPaymentUpdateRequest
Blanket Implementations§
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§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