@@ -347,7 +347,7 @@ pub struct RawDataPart {
347
347
/// The Unix timestamp representing the stored time has to be positive and no greater than
348
348
/// [`MAX_TIMESTAMP`].
349
349
#[ derive( Eq , PartialEq , Debug , Clone , Hash , Ord , PartialOrd ) ]
350
- pub struct PositiveTimestamp ( Duration ) ;
350
+ pub struct PositiveTimestamp ( pub Duration ) ;
351
351
352
352
/// SI prefixes for the human readable part
353
353
#[ derive( Eq , PartialEq , Debug , Clone , Copy , Hash , Ord , PartialOrd ) ]
@@ -479,7 +479,7 @@ impl Sha256 {
479
479
///
480
480
/// # Invariants
481
481
/// The description can be at most 639 __bytes__ long
482
- #[ derive( Clone , Debug , Hash , Eq , PartialEq , Ord , PartialOrd ) ]
482
+ #[ derive( Clone , Debug , Hash , Eq , PartialEq , Ord , PartialOrd , Default ) ]
483
483
pub struct Description ( String ) ;
484
484
485
485
/// Payee public key
@@ -489,7 +489,7 @@ pub struct PayeePubKey(pub PublicKey);
489
489
/// Positive duration that defines when (relatively to the timestamp) in the future the invoice
490
490
/// expires
491
491
#[ derive( Clone , Debug , Hash , Eq , PartialEq , Ord , PartialOrd ) ]
492
- pub struct ExpiryTime ( Duration ) ;
492
+ pub struct ExpiryTime ( pub Duration ) ;
493
493
494
494
/// `min_final_cltv_expiry_delta` to use for the last HTLC in the route
495
495
#[ derive( Clone , Debug , Hash , Eq , PartialEq , Ord , PartialOrd ) ]
@@ -529,7 +529,7 @@ impl Ord for Bolt11InvoiceSignature {
529
529
/// The encoded route has to be <1024 5bit characters long (<=639 bytes or <=12 hops)
530
530
///
531
531
#[ derive( Clone , Debug , Hash , Eq , PartialEq , Ord , PartialOrd ) ]
532
- pub struct PrivateRoute ( RouteHint ) ;
532
+ pub struct PrivateRoute ( pub RouteHint ) ;
533
533
534
534
/// Tag constants as specified in BOLT11
535
535
#[ allow( missing_docs) ]
0 commit comments