Make OnionMessageContents private for now 2022-10-112-bindings-base
authorMatt Corallo <git@bluematt.me>
Wed, 26 Oct 2022 21:58:46 +0000 (21:58 +0000)
committerMatt Corallo <git@bluematt.me>
Thu, 27 Oct 2022 21:29:46 +0000 (21:29 +0000)
commit83af710914ed8634f87cde7696029519cd30f844
tree121713a2b97a9e332f8ee2fd47622777805600b6
parent46a1a8ebb7973b73b8dbe0baeac63d139f1c6d65
Make OnionMessageContents private for now

This doesn't change the API expressibility as its currently the
only type of message that can be sent, but avoids a generation
failure as we can't call `&self` methods on complex enums unless
we can `clone` all the inner fields. The correct solution to this
is to simply not expose those methods (which sucks, but at least
for `OnionMessageContents` they don't really matter), but that
doesn't have to come now.
lightning/src/onion_message/messenger.rs
lightning/src/onion_message/packet.rs