[bindings] No-export `RouteHopCandidate` lifetime'd fields
authorMatt Corallo <git@bluematt.me>
Tue, 23 Jan 2024 01:16:46 +0000 (01:16 +0000)
committerMatt Corallo <git@bluematt.me>
Wed, 24 Jan 2024 23:19:11 +0000 (23:19 +0000)
commita5ba3391f8dd61515385bfcf3d946a1c6b731f0a
tree2f2a046734c70fe277477d8d4ec3c4b5d316a4ab
parent4764fa3985c436fe820732344ac1a746ca9e540f
[bindings] No-export `RouteHopCandidate` lifetime'd fields

The bindings cannot express lifetimes, so exposing any field which
is a reference (and not `clone`-able, at least for garbage
collected language bindings) is unsafe for those expecting a
high-level interface.

Thus, we simply no-export the `RouteHopCandidate` inner struct
fields which are references (there are relevant accessors for them
anyway).
lightning/src/routing/router.rs