@@ -161,7 +161,7 @@ where
161
161
}
162
162
163
163
/// Response to a [`script_get_history`](../client/struct.Client.html#method.script_get_history) request.
164
- #[ derive( Debug , Deserialize ) ]
164
+ #[ derive( Clone , Debug , Deserialize ) ]
165
165
pub struct GetHistoryRes {
166
166
/// Confirmation height of the transaction. 0 if unconfirmed, -1 if unconfirmed while some of
167
167
/// its inputs are unconfirmed too.
@@ -173,7 +173,7 @@ pub struct GetHistoryRes {
173
173
}
174
174
175
175
/// Response to a [`script_list_unspent`](../client/struct.Client.html#method.script_list_unspent) request.
176
- #[ derive( Debug , Deserialize ) ]
176
+ #[ derive( Clone , Debug , Deserialize ) ]
177
177
pub struct ListUnspentRes {
178
178
/// Confirmation height of the transaction that created this output.
179
179
pub height : usize ,
@@ -186,7 +186,7 @@ pub struct ListUnspentRes {
186
186
}
187
187
188
188
/// Response to a [`server_features`](../client/struct.Client.html#method.server_features) request.
189
- #[ derive( Debug , Deserialize ) ]
189
+ #[ derive( Clone , Debug , Deserialize ) ]
190
190
pub struct ServerFeaturesRes {
191
191
/// Server version reported.
192
192
pub server_version : String ,
@@ -204,7 +204,7 @@ pub struct ServerFeaturesRes {
204
204
}
205
205
206
206
/// Response to a [`server_features`](../client/struct.Client.html#method.server_features) request.
207
- #[ derive( Debug , Deserialize ) ]
207
+ #[ derive( Clone , Debug , Deserialize ) ]
208
208
pub struct GetHeadersRes {
209
209
/// Maximum number of headers returned in a single response.
210
210
pub max : usize ,
@@ -219,7 +219,7 @@ pub struct GetHeadersRes {
219
219
}
220
220
221
221
/// Response to a [`script_get_balance`](../client/struct.Client.html#method.script_get_balance) request.
222
- #[ derive( Debug , Deserialize ) ]
222
+ #[ derive( Clone , Debug , Deserialize ) ]
223
223
pub struct GetBalanceRes {
224
224
/// Confirmed balance in Satoshis for the address.
225
225
pub confirmed : u64 ,
@@ -230,7 +230,7 @@ pub struct GetBalanceRes {
230
230
}
231
231
232
232
/// Response to a [`transaction_get_merkle`](../client/struct.Client.html#method.transaction_get_merkle) request.
233
- #[ derive( Debug , Deserialize ) ]
233
+ #[ derive( Clone , Debug , Deserialize ) ]
234
234
pub struct GetMerkleRes {
235
235
/// Height of the block that confirmed the transaction
236
236
pub block_height : usize ,
@@ -242,7 +242,7 @@ pub struct GetMerkleRes {
242
242
}
243
243
244
244
/// Notification of a new block header
245
- #[ derive( Debug , Deserialize ) ]
245
+ #[ derive( Clone , Debug , Deserialize ) ]
246
246
pub struct HeaderNotification {
247
247
/// New block height.
248
248
pub height : usize ,
@@ -252,7 +252,7 @@ pub struct HeaderNotification {
252
252
}
253
253
254
254
/// Notification of a new block header with the header encoded as raw bytes
255
- #[ derive( Debug , Deserialize ) ]
255
+ #[ derive( Clone , Debug , Deserialize ) ]
256
256
pub struct RawHeaderNotification {
257
257
/// New block height.
258
258
pub height : usize ,
@@ -273,7 +273,7 @@ impl TryFrom<RawHeaderNotification> for HeaderNotification {
273
273
}
274
274
275
275
/// Notification of the new status of a script
276
- #[ derive( Debug , Deserialize ) ]
276
+ #[ derive( Clone , Debug , Deserialize ) ]
277
277
pub struct ScriptNotification {
278
278
/// Address that generated this notification.
279
279
pub scripthash : ScriptHash ,
0 commit comments