Expose the `RecipientOnionFields` in `Event::PaymentClaimable`
[rust-lightning] / lightning / src / ln / outbound_payment.rs
index 59efbcfa8c38e1740cad3fb507d0334c61f2e974..345046c2daad66f37d7d25890273b49ff0ce141e 100644 (file)
@@ -409,7 +409,7 @@ pub enum PaymentSendFailure {
 ///
 /// This should generally be constructed with data communicated to us from the recipient (via a
 /// BOLT11 or BOLT12 invoice).
-#[derive(Clone)]
+#[derive(Clone, Debug, PartialEq, Eq)]
 pub struct RecipientOnionFields {
        /// The [`PaymentSecret`] is an arbitrary 32 bytes provided by the recipient for us to repeat
        /// in the onion. It is unrelated to `payment_hash` (or [`PaymentPreimage`]) and exists to