Skip to content

Commit 1cac120

Browse files
committed
Derive serde::Serialize for GetTransactionResultDetail et al
1 parent bde02d7 commit 1cac120

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

json/src/lib.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -654,7 +654,7 @@ pub enum GetTransactionResultDetailCategory {
654654
Orphan,
655655
}
656656

657-
#[derive(Clone, PartialEq, Eq, Debug, Deserialize)]
657+
#[derive(Clone, PartialEq, Eq, Debug, Deserialize, Serialize)]
658658
pub struct GetTransactionResultDetail {
659659
pub address: Option<Address>,
660660
pub category: GetTransactionResultDetailCategory,
@@ -667,7 +667,7 @@ pub struct GetTransactionResultDetail {
667667
pub abandoned: Option<bool>,
668668
}
669669

670-
#[derive(Clone, PartialEq, Eq, Debug, Deserialize)]
670+
#[derive(Clone, PartialEq, Eq, Debug, Deserialize, Serialize)]
671671
pub struct WalletTxInfo {
672672
pub confirmations: i32,
673673
pub blockhash: Option<bitcoin::BlockHash>,
@@ -684,7 +684,7 @@ pub struct WalletTxInfo {
684684
pub wallet_conflicts: Vec<bitcoin::Txid>,
685685
}
686686

687-
#[derive(Clone, PartialEq, Eq, Debug, Deserialize)]
687+
#[derive(Clone, PartialEq, Eq, Debug, Deserialize, Serialize)]
688688
pub struct GetTransactionResult {
689689
#[serde(flatten)]
690690
pub info: WalletTxInfo,
@@ -1770,7 +1770,7 @@ impl serde::Serialize for SigHashType {
17701770
}
17711771

17721772
// Used for createrawtransaction argument.
1773-
#[derive(Serialize, Clone, PartialEq, Eq, Debug)]
1773+
#[derive(Serialize, Clone, PartialEq, Eq, Debug, Deserialize)]
17741774
#[serde(rename_all = "camelCase")]
17751775
pub struct CreateRawTransactionInput {
17761776
pub txid: bitcoin::Txid,

0 commit comments

Comments
 (0)