Skip to content

Commit bace448

Browse files
committed
Add missing derives
Some of the structs in types are missing the derives. Add them in all cases where it was missing.
1 parent 09d0f90 commit bace448

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

types/src/model/blockchain.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -242,6 +242,7 @@ pub struct GetBlockHeaderVerbose {
242242
}
243243

244244
/// Models the result of JSON-RPC method `getblockstats`.
245+
#[derive(Clone, Debug, PartialEq, Deserialize, Serialize)]
245246
pub struct GetBlockStats {
246247
/// Average fee in the block.
247248
pub average_fee: Amount,

types/src/model/wallet.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -270,6 +270,7 @@ pub struct GetNewAddress(pub Address<NetworkUnchecked>);
270270
pub struct GetRawChangeAddress(pub Address<NetworkUnchecked>);
271271

272272
/// Models the result of JSON-RPC method `getreceivedbyaddress`.
273+
#[derive(Clone, Debug, PartialEq, Deserialize, Serialize)]
273274
pub struct GetReceivedByAddress(pub Amount);
274275

275276
/// Models the result of JSON-RPC method `gettransaction`.
@@ -332,6 +333,7 @@ pub struct GetTransactionDetail {
332333
}
333334

334335
/// Models the result of JSON-RPC method `getunconfirmedbalance`.
336+
#[derive(Clone, Debug, PartialEq, Deserialize, Serialize)]
335337
pub struct GetUnconfirmedBalance(pub Amount);
336338

337339
/// Models the result of JSON-RPC method `getwalletinfo`.

0 commit comments

Comments
 (0)