@@ -87,15 +87,8 @@ pub struct Bolt11SendRequest {
8787#[ derive( Clone , PartialEq , :: prost:: Message ) ]
8888pub struct Bolt11SendResponse {
8989 /// An identifier used to uniquely identify a payment.
90- #[ prost( message, optional, tag = "1" ) ]
91- pub payment_id : :: core:: option:: Option < PaymentId > ,
92- }
93- /// An identifier used to uniquely identify a payment.
94- #[ allow( clippy:: derive_partial_eq_without_eq) ]
95- #[ derive( Clone , PartialEq , :: prost:: Message ) ]
96- pub struct PaymentId {
9790 #[ prost( bytes = "bytes" , tag = "1" ) ]
98- pub data : :: prost:: bytes:: Bytes ,
91+ pub payment_id : :: prost:: bytes:: Bytes ,
9992}
10093/// Returns a BOLT12 offer for the given amount, if specified.
10194///
@@ -148,8 +141,8 @@ pub struct Bolt12SendRequest {
148141#[ derive( Clone , PartialEq , :: prost:: Message ) ]
149142pub struct Bolt12SendResponse {
150143 /// An identifier used to uniquely identify a payment.
151- #[ prost( message , optional , tag = "1" ) ]
152- pub payment_id : :: core :: option :: Option < PaymentId > ,
144+ #[ prost( bytes = "bytes" , tag = "1" ) ]
145+ pub payment_id : :: prost :: bytes :: Bytes ,
153146}
154147/// Creates a new outbound channel to the given remote node.
155148/// See more: <https://docs.rs/ldk-node/latest/ldk_node/struct.Node.html#method.connect_open_channel>
0 commit comments