@@ -353,7 +353,7 @@ pub struct RawDataPart {
353
353
/// The Unix timestamp representing the stored time has to be positive and no greater than
354
354
/// [`MAX_TIMESTAMP`].
355
355
#[ derive( Eq , PartialEq , Debug , Clone , Hash , Ord , PartialOrd ) ]
356
- pub struct PositiveTimestamp ( Duration ) ;
356
+ pub struct PositiveTimestamp ( pub Duration ) ;
357
357
358
358
/// SI prefixes for the human readable part
359
359
#[ derive( Eq , PartialEq , Debug , Clone , Copy , Hash , Ord , PartialOrd ) ]
@@ -485,8 +485,8 @@ impl Sha256 {
485
485
///
486
486
/// # Invariants
487
487
/// The description can be at most 639 __bytes__ long
488
- #[ derive( Clone , Debug , Hash , Eq , PartialEq , Ord , PartialOrd ) ]
489
- pub struct Description ( String ) ;
488
+ #[ derive( Clone , Debug , Hash , Eq , PartialEq , Ord , PartialOrd , Default ) ]
489
+ pub struct Description ( pub String ) ;
490
490
491
491
/// Payee public key
492
492
#[ derive( Clone , Debug , Hash , Eq , PartialEq , Ord , PartialOrd ) ]
@@ -495,7 +495,7 @@ pub struct PayeePubKey(pub PublicKey);
495
495
/// Positive duration that defines when (relatively to the timestamp) in the future the invoice
496
496
/// expires
497
497
#[ derive( Clone , Debug , Hash , Eq , PartialEq , Ord , PartialOrd ) ]
498
- pub struct ExpiryTime ( Duration ) ;
498
+ pub struct ExpiryTime ( pub Duration ) ;
499
499
500
500
/// `min_final_cltv_expiry_delta` to use for the last HTLC in the route
501
501
#[ derive( Clone , Debug , Hash , Eq , PartialEq , Ord , PartialOrd ) ]
@@ -535,7 +535,7 @@ impl Ord for Bolt11InvoiceSignature {
535
535
/// The encoded route has to be <1024 5bit characters long (<=639 bytes or <=12 hops)
536
536
///
537
537
#[ derive( Clone , Debug , Hash , Eq , PartialEq , Ord , PartialOrd ) ]
538
- pub struct PrivateRoute ( RouteHint ) ;
538
+ pub struct PrivateRoute ( pub RouteHint ) ;
539
539
540
540
/// Tag constants as specified in BOLT11
541
541
#[ allow( missing_docs) ]
0 commit comments