diff --git a/bindings/ldk_node.udl b/bindings/ldk_node.udl index c2f0166c8..ea4279b6d 100644 --- a/bindings/ldk_node.udl +++ b/bindings/ldk_node.udl @@ -715,6 +715,7 @@ dictionary RouteHintHop { RoutingFees fees; }; +[Traits=(Debug, Display, Eq)] interface Bolt11Invoice { [Throws=NodeError, Name=from_str] constructor([ByRef] string invoice_str); diff --git a/src/payment/unified_qr.rs b/src/payment/unified_qr.rs index 5e6c1ef60..5971daead 100644 --- a/src/payment/unified_qr.rs +++ b/src/payment/unified_qr.rs @@ -186,6 +186,7 @@ impl UnifiedQrPayment { /// [BIP 21]: https://github.com/bitcoin/bips/blob/master/bip-0021.mediawiki /// [`PaymentId`]: lightning::ln::channelmanager::PaymentId /// [`Txid`]: bitcoin::hash_types::Txid +#[derive(Debug)] pub enum QrPaymentResult { /// An on-chain payment. Onchain { diff --git a/src/uniffi_types.rs b/src/uniffi_types.rs index 77f9348cc..f8697e087 100644 --- a/src/uniffi_types.rs +++ b/src/uniffi_types.rs @@ -467,7 +467,7 @@ impl From for RouteHintHop { /// Represents a syntactically and semantically correct lightning BOLT11 invoice. #[derive(Debug, Clone, PartialEq, Eq)] pub struct Bolt11Invoice { - pub inner: LdkBolt11Invoice, + pub(crate) inner: LdkBolt11Invoice, } impl Bolt11Invoice {