Struct ldk_node::PaymentDetails
source · pub struct PaymentDetails {
pub hash: PaymentHash,
pub preimage: Option<PaymentPreimage>,
pub secret: Option<PaymentSecret>,
pub amount_msat: Option<u64>,
pub direction: PaymentDirection,
pub status: PaymentStatus,
}
Expand description
Represents a payment.
Fields§
§hash: PaymentHash
The payment hash, i.e., the hash of the preimage
.
preimage: Option<PaymentPreimage>
The pre-image used by the payment.
secret: Option<PaymentSecret>
The secret used by the payment.
amount_msat: Option<u64>
The amount transferred.
direction: PaymentDirection
The direction of the payment.
status: PaymentStatus
The status of the payment.
Trait Implementations§
source§impl Clone for PaymentDetails
impl Clone for PaymentDetails
source§fn clone(&self) -> PaymentDetails
fn clone(&self) -> PaymentDetails
Returns a copy 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§fn eq(&self, other: &PaymentDetails) -> bool
fn eq(&self, other: &PaymentDetails) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl Readable for PaymentDetails
impl Readable for PaymentDetails
source§impl Writeable for PaymentDetails
impl Writeable for PaymentDetails
impl Eq for PaymentDetails
impl StructuralEq for PaymentDetails
impl StructuralPartialEq for PaymentDetails
Auto Trait Implementations§
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
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.