pub struct PaymentDetails {
pub id: PaymentId,
pub kind: PaymentKind,
pub amount_msat: Option<u64>,
pub fee_paid_msat: Option<u64>,
pub direction: PaymentDirection,
pub status: PaymentStatus,
pub latest_update_timestamp: u64,
}Expand description
Represents a payment.
Fields§
§id: PaymentIdThe identifier of this payment.
kind: PaymentKindThe kind of the payment.
amount_msat: Option<u64>The amount transferred.
Will be None for variable-amount payments until we receive them.
fee_paid_msat: Option<u64>The fees that were paid for this payment.
For Lightning payments, this will only be updated for outbound payments once they succeeded.
Will be None for Lightning payments made with LDK Node v0.4.x and earlier.
direction: PaymentDirectionThe direction of the payment.
status: PaymentStatusThe status of the payment.
latest_update_timestamp: u64The timestamp, in seconds since start of the UNIX epoch, when this entry was last updated.
Trait Implementations§
Source§impl Clone for PaymentDetails
impl Clone for PaymentDetails
Source§fn clone(&self) -> PaymentDetails
fn clone(&self) -> PaymentDetails
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 PaymentDetails
impl Debug for PaymentDetails
Source§impl PartialEq for PaymentDetails
impl PartialEq for PaymentDetails
Source§impl Readable for PaymentDetails
impl Readable for PaymentDetails
Source§fn read<R: Read>(reader: &mut R) -> Result<PaymentDetails, DecodeError>
fn read<R: Read>(reader: &mut R) -> Result<PaymentDetails, DecodeError>
Reads a
Self in from the given Read.Source§impl Writeable for PaymentDetails
impl Writeable for PaymentDetails
impl Eq for PaymentDetails
impl StructuralPartialEq for PaymentDetails
Auto Trait Implementations§
impl Freeze for PaymentDetails
impl RefUnwindSafe for PaymentDetails
impl Send for PaymentDetails
impl Sync for PaymentDetails
impl Unpin for PaymentDetails
impl UnwindSafe for PaymentDetails
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> LengthReadable for Twhere
T: Readable,
impl<T> LengthReadable for Twhere
T: Readable,
Source§fn read_from_fixed_length_buffer<R>(reader: &mut R) -> Result<T, DecodeError>where
R: LengthLimitedRead,
fn read_from_fixed_length_buffer<R>(reader: &mut R) -> Result<T, DecodeError>where
R: LengthLimitedRead,
Reads a
Self in from the given LengthLimitedRead.