impl `Clone` on various public (mostly BOLT12) types
authorMatt Corallo <git@bluematt.me>
Mon, 13 May 2024 14:36:01 +0000 (14:36 +0000)
committerMatt Corallo <git@bluematt.me>
Tue, 14 May 2024 13:17:03 +0000 (13:17 +0000)
commitbccddcaabdca983bcfe8807d794458454fb350fc
tree2b3d2473bd0eb07a92c5f9b4722896cc282b409a
parent7e69d835b2a3a90285b353a3bab90757761a79d6
impl `Clone` on various public (mostly BOLT12) types

This is required for bindings as passing types from Rust to GC'd
languages can't map the concept of a type that has a lifetime of
the called function but instead needs to clone for safety.
lightning/src/ln/onion_payment.rs
lightning/src/offers/invoice.rs
lightning/src/offers/invoice_request.rs
lightning/src/offers/offer.rs
lightning/src/offers/refund.rs