@@ -47,7 +47,7 @@ use vss_client::headers::VssHeaderProvider as VssClientHeaderProvider;
4747use vss_client:: headers:: VssHeaderProviderError as VssClientHeaderProviderError ;
4848
4949/// Errors around providing headers for each VSS request.
50- #[ derive( Debug ) ]
50+ #[ derive( Debug , uniffi :: Error ) ]
5151pub enum VssHeaderProviderError {
5252 /// Invalid data was encountered.
5353 InvalidData {
@@ -141,7 +141,7 @@ use crate::builder::sanitize_alias;
141141pub use crate :: config:: { default_config, ElectrumSyncConfig , EsploraSyncConfig } ;
142142pub use crate :: entropy:: { generate_entropy_mnemonic, EntropyError , NodeEntropy , WordCount } ;
143143use crate :: error:: Error ;
144- pub use crate :: graph:: { ChannelInfo , ChannelUpdateInfo , NodeAnnouncementInfo , NodeInfo } ;
144+ pub use crate :: graph:: { ChannelInfo , NodeInfo } ;
145145pub use crate :: liquidity:: LSPS1OrderStatus ;
146146pub use crate :: logger:: { LogLevel , LogRecord , LogWriter } ;
147147pub use crate :: payment:: UnifiedPaymentResult ;
@@ -203,7 +203,7 @@ uniffi::custom_type!(ScriptBuf, String, {
203203 } ,
204204} ) ;
205205
206- #[ derive( Debug , Clone , PartialEq , Eq ) ]
206+ #[ derive( Debug , Clone , PartialEq , Eq , uniffi :: Enum ) ]
207207pub enum OfferAmount {
208208 Bitcoin { amount_msats : u64 } ,
209209 Currency { iso4217_code : String , amount : u64 } ,
@@ -933,7 +933,7 @@ uniffi::custom_type!(NodeAlias, String, {
933933
934934/// Represents the description of an invoice which has to be either a directly included string or
935935/// a hash of a description provided out of band.
936- #[ derive( Debug , Clone , PartialEq , Eq ) ]
936+ #[ derive( Debug , Clone , PartialEq , Eq , uniffi :: Enum ) ]
937937pub enum Bolt11InvoiceDescription {
938938 /// Contains a full description.
939939 Direct {
@@ -1026,7 +1026,7 @@ impl From<lightning_invoice::Currency> for Currency {
10261026///
10271027/// While this generally comes from BOLT 11's `r` field, this struct includes more fields than are
10281028/// available in BOLT 11.
1029- #[ derive( Debug , Clone , PartialEq , Eq ) ]
1029+ #[ derive( Debug , Clone , PartialEq , Eq , uniffi :: Record ) ]
10301030pub struct RouteHintHop {
10311031 /// The node_id of the non-target end of the route
10321032 pub src_node_id : PublicKey ,
@@ -1198,7 +1198,7 @@ impl std::fmt::Display for Bolt11Invoice {
11981198 }
11991199}
12001200
1201- #[ derive( Clone , Debug , PartialEq , Eq ) ]
1201+ #[ derive( Clone , Debug , PartialEq , Eq , uniffi :: Record ) ]
12021202pub struct LSPS1PaymentInfo {
12031203 /// A Lightning payment using BOLT 11.
12041204 pub bolt11 : Option < crate :: ffi:: LSPS1Bolt11PaymentInfo > ,
@@ -1218,7 +1218,7 @@ impl From<lightning_liquidity::lsps1::msgs::LSPS1PaymentInfo> for LSPS1PaymentIn
12181218
12191219/// An onchain payment.
12201220#[ cfg( feature = "uniffi" ) ]
1221- #[ derive( Clone , Debug , PartialEq , Eq ) ]
1221+ #[ derive( Clone , Debug , PartialEq , Eq , uniffi :: Record ) ]
12221222pub struct LSPS1OnchainPaymentInfo {
12231223 /// Indicates the current state of the payment.
12241224 pub state : lightning_liquidity:: lsps1:: msgs:: LSPS1PaymentState ,
@@ -1257,7 +1257,7 @@ impl From<lightning_liquidity::lsps1::msgs::LSPS1OnchainPaymentInfo> for LSPS1On
12571257 }
12581258}
12591259/// A Lightning payment using BOLT 11.
1260- #[ derive( Clone , Debug , PartialEq , Eq ) ]
1260+ #[ derive( Clone , Debug , PartialEq , Eq , uniffi :: Record ) ]
12611261pub struct LSPS1Bolt11PaymentInfo {
12621262 /// Indicates the current state of the payment.
12631263 pub state : LSPS1PaymentState ,
0 commit comments