impl `Clone` on various public (mostly BOLT12) types
[rust-lightning] / lightning / src / offers / invoice.rs
index d99e647e9dd495422866b298f8bfe0e0cb9db250..ecb0c80061ba3851b3975373b099111f9eb4ebf0 100644 (file)
@@ -503,6 +503,7 @@ for InvoiceBuilder<'a, DerivedSigningPubkey> {
 ///
 /// This is serialized as a TLV stream, which includes TLV records from the originating message. As
 /// such, it may include unknown, odd TLV records.
+#[derive(Clone)]
 pub struct UnsignedBolt12Invoice {
        bytes: Vec<u8>,
        contents: InvoiceContents,