@@ -604,7 +604,7 @@ pub struct Offer {
604
604
///
605
605
/// [`InvoiceRequest`]: crate::offers::invoice_request::InvoiceRequest
606
606
/// [`Bolt12Invoice`]: crate::offers::invoice::Bolt12Invoice
607
- #[ derive( Clone , Debug ) ]
607
+ #[ derive( Clone , Debug , Hash ) ]
608
608
#[ cfg_attr( test, derive( PartialEq ) ) ]
609
609
pub ( super ) struct OfferContents {
610
610
chains : Option < Vec < ChainHash > > ,
@@ -1059,7 +1059,7 @@ impl Writeable for OfferContents {
1059
1059
1060
1060
/// The minimum amount required for an item in an [`Offer`], denominated in either bitcoin or
1061
1061
/// another currency.
1062
- #[ derive( Clone , Copy , Debug , PartialEq ) ]
1062
+ #[ derive( Clone , Copy , Debug , PartialEq , Hash ) ]
1063
1063
pub enum Amount {
1064
1064
/// An amount of bitcoin.
1065
1065
Bitcoin {
@@ -1079,7 +1079,7 @@ pub enum Amount {
1079
1079
pub type CurrencyCode = [ u8 ; 3 ] ;
1080
1080
1081
1081
/// Quantity of items supported by an [`Offer`].
1082
- #[ derive( Clone , Copy , Debug , PartialEq ) ]
1082
+ #[ derive( Clone , Copy , Debug , PartialEq , Hash ) ]
1083
1083
pub enum Quantity {
1084
1084
/// Up to a specific number of items (inclusive). Use when more than one item can be requested
1085
1085
/// but is limited (e.g., because of per customer or inventory limits).
0 commit comments