@@ -84,6 +84,8 @@ pub(super) const IV_BYTES: &[u8; IV_LEN] = b"LDK Invreq ~~~~~";
84
84
///
85
85
/// See [module-level documentation] for usage.
86
86
///
87
+ /// This is not exported to bindings users as builder patterns don't map outside of move semantics.
88
+ ///
87
89
/// [module-level documentation]: self
88
90
pub struct InvoiceRequestBuilder < ' a , ' b , P : PayerIdStrategy , T : secp256k1:: Signing > {
89
91
offer : & ' a Offer ,
@@ -94,12 +96,18 @@ pub struct InvoiceRequestBuilder<'a, 'b, P: PayerIdStrategy, T: secp256k1::Signi
94
96
}
95
97
96
98
/// Indicates how [`InvoiceRequest::payer_id`] will be set.
99
+ ///
100
+ /// This is not exported to bindings users as builder patterns don't map outside of move semantics.
97
101
pub trait PayerIdStrategy { }
98
102
99
103
/// [`InvoiceRequest::payer_id`] will be explicitly set.
104
+ ///
105
+ /// This is not exported to bindings users as builder patterns don't map outside of move semantics.
100
106
pub struct ExplicitPayerId { }
101
107
102
108
/// [`InvoiceRequest::payer_id`] will be derived.
109
+ ///
110
+ /// This is not exported to bindings users as builder patterns don't map outside of move semantics.
103
111
pub struct DerivedPayerId { }
104
112
105
113
impl PayerIdStrategy for ExplicitPayerId { }
@@ -340,6 +348,8 @@ pub struct UnsignedInvoiceRequest<'a> {
340
348
341
349
impl < ' a > UnsignedInvoiceRequest < ' a > {
342
350
/// Signs the invoice request using the given function.
351
+ ///
352
+ /// This is not exported to bindings users as functions are not yet mapped.
343
353
pub fn sign < F , E > ( self , sign : F ) -> Result < InvoiceRequest , SignError < E > >
344
354
where
345
355
F : FnOnce ( & Message ) -> Result < Signature , E >
@@ -465,6 +475,8 @@ impl InvoiceRequest {
465
475
/// See [`InvoiceRequest::respond_with_no_std`] for further details where the aforementioned
466
476
/// creation time is used for the `created_at` parameter.
467
477
///
478
+ /// This is not exported to bindings users as builder patterns don't map outside of move semantics.
479
+ ///
468
480
/// [`Duration`]: core::time::Duration
469
481
#[ cfg( feature = "std" ) ]
470
482
pub fn respond_with (
@@ -493,6 +505,8 @@ impl InvoiceRequest {
493
505
///
494
506
/// Errors if the request contains unknown required features.
495
507
///
508
+ /// This is not exported to bindings users as builder patterns don't map outside of move semantics.
509
+ ///
496
510
/// [`Invoice::created_at`]: crate::offers::invoice::Invoice::created_at
497
511
pub fn respond_with_no_std (
498
512
& self , payment_paths : Vec < ( BlindedPath , BlindedPayInfo ) > , payment_hash : PaymentHash ,
@@ -511,6 +525,8 @@ impl InvoiceRequest {
511
525
///
512
526
/// See [`InvoiceRequest::respond_with`] for further details.
513
527
///
528
+ /// This is not exported to bindings users as builder patterns don't map outside of move semantics.
529
+ ///
514
530
/// [`Invoice`]: crate::offers::invoice::Invoice
515
531
#[ cfg( feature = "std" ) ]
516
532
pub fn verify_and_respond_using_derived_keys < T : secp256k1:: Signing > (
@@ -532,6 +548,8 @@ impl InvoiceRequest {
532
548
///
533
549
/// See [`InvoiceRequest::respond_with_no_std`] for further details.
534
550
///
551
+ /// This is not exported to bindings users as builder patterns don't map outside of move semantics.
552
+ ///
535
553
/// [`Invoice`]: crate::offers::invoice::Invoice
536
554
pub fn verify_and_respond_using_derived_keys_no_std < T : secp256k1:: Signing > (
537
555
& self , payment_paths : Vec < ( BlindedPath , BlindedPayInfo ) > , payment_hash : PaymentHash ,
0 commit comments