@@ -604,7 +604,7 @@ pub struct Offer {
604604///
605605/// [`InvoiceRequest`]: crate::offers::invoice_request::InvoiceRequest
606606/// [`Bolt12Invoice`]: crate::offers::invoice::Bolt12Invoice
607- #[ derive( Clone , Debug ) ]
607+ #[ derive( Clone , Debug , Hash ) ]
608608#[ cfg_attr( test, derive( PartialEq ) ) ]
609609pub ( super ) struct OfferContents {
610610 chains : Option < Vec < ChainHash > > ,
@@ -1059,7 +1059,7 @@ impl Writeable for OfferContents {
10591059
10601060/// The minimum amount required for an item in an [`Offer`], denominated in either bitcoin or
10611061/// another currency.
1062- #[ derive( Clone , Copy , Debug , PartialEq ) ]
1062+ #[ derive( Clone , Copy , Debug , PartialEq , Hash ) ]
10631063pub enum Amount {
10641064 /// An amount of bitcoin.
10651065 Bitcoin {
@@ -1079,7 +1079,7 @@ pub enum Amount {
10791079pub type CurrencyCode = [ u8 ; 3 ] ;
10801080
10811081/// Quantity of items supported by an [`Offer`].
1082- #[ derive( Clone , Copy , Debug , PartialEq ) ]
1082+ #[ derive( Clone , Copy , Debug , PartialEq , Hash ) ]
10831083pub enum Quantity {
10841084 /// Up to a specific number of items (inclusive). Use when more than one item can be requested
10851085 /// but is limited (e.g., because of per customer or inventory limits).
0 commit comments