File tree 2 files changed +5
-2
lines changed
2 files changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -307,6 +307,7 @@ impl<'a> UnsignedInvoice<'a> {
307
307
/// [`Offer`]: crate::offers::offer::Offer
308
308
/// [`Refund`]: crate::offers::refund::Refund
309
309
/// [`InvoiceRequest`]: crate::offers::invoice_request::InvoiceRequest
310
+ #[ derive( Clone , Debug , PartialEq ) ]
310
311
pub struct Invoice {
311
312
bytes : Vec < u8 > ,
312
313
contents : InvoiceContents ,
@@ -317,6 +318,7 @@ pub struct Invoice {
317
318
///
318
319
/// [`Offer`]: crate::offers::offer::Offer
319
320
/// [`Refund`]: crate::offers::refund::Refund
321
+ #[ derive( Clone , Debug , PartialEq ) ]
320
322
enum InvoiceContents {
321
323
/// Contents for an [`Invoice`] corresponding to an [`Offer`].
322
324
///
@@ -335,6 +337,7 @@ enum InvoiceContents {
335
337
}
336
338
337
339
/// Invoice-specific fields for an `invoice` message.
340
+ #[ derive( Clone , Debug , PartialEq ) ]
338
341
struct InvoiceFields {
339
342
payment_paths : Vec < ( BlindedPath , BlindedPayInfo ) > ,
340
343
created_at : Duration ,
Original file line number Diff line number Diff line change @@ -250,7 +250,7 @@ impl<'a> UnsignedInvoiceRequest<'a> {
250
250
///
251
251
/// [`Invoice`]: crate::offers::invoice::Invoice
252
252
/// [`Offer`]: crate::offers::offer::Offer
253
- #[ derive( Clone , Debug ) ]
253
+ #[ derive( Clone , Debug , PartialEq ) ]
254
254
pub struct InvoiceRequest {
255
255
pub ( super ) bytes : Vec < u8 > ,
256
256
pub ( super ) contents : InvoiceRequestContents ,
@@ -260,7 +260,7 @@ pub struct InvoiceRequest {
260
260
/// The contents of an [`InvoiceRequest`], which may be shared with an [`Invoice`].
261
261
///
262
262
/// [`Invoice`]: crate::offers::invoice::Invoice
263
- #[ derive( Clone , Debug ) ]
263
+ #[ derive( Clone , Debug , PartialEq ) ]
264
264
pub ( super ) struct InvoiceRequestContents {
265
265
payer : PayerContents ,
266
266
pub ( super ) offer : OfferContents ,
You can’t perform that action at this time.
0 commit comments