Skip to content

Commit 3aa5b67

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

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

json/src/lib.rs

Lines changed: 3 additions & 3 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,

0 commit comments

Comments
 (0)