Skip to content

Commit

Permalink
Add relevant no-export tags to functions returning builders
Browse files Browse the repository at this point in the history
Because we can't map move semantics in most languages, we also
can't map our current builders. Thus, we have to mark them
no-export.
  • Loading branch information
TheBlueMatt committed Oct 23, 2023
1 parent 4918c41 commit 32d2d0f
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions lightning/src/ln/channelmanager.rs
Original file line number Diff line number Diff line change
Expand Up @@ -7331,6 +7331,8 @@ where
/// Requires a direct connection to the introduction node in the responding [`InvoiceRequest`]'s
/// reply path.
///
/// This is not exported to bindings users as builder patterns don't map outside of move semantics.
///
/// [`Offer`]: crate::offers::offer::Offer
/// [`InvoiceRequest`]: crate::offers::invoice_request::InvoiceRequest
pub fn create_offer_builder(
Expand Down Expand Up @@ -7384,6 +7386,8 @@ where
/// Errors if a duplicate `payment_id` is provided given the caveats in the aforementioned link
/// or if `amount_msats` is invalid.
///
/// This is not exported to bindings users as builder patterns don't map outside of move semantics.
///
/// [`Refund`]: crate::offers::refund::Refund
/// [`Bolt12Invoice`]: crate::offers::invoice::Bolt12Invoice
/// [`Bolt12Invoice::payment_paths`]: crate::offers::invoice::Bolt12Invoice::payment_paths
Expand Down

0 comments on commit 32d2d0f

Please sign in to comment.