@@ -667,7 +667,7 @@ pub enum GetTransactionResultDetailCategory {
667
667
Orphan ,
668
668
}
669
669
670
- #[ derive( Clone , PartialEq , Eq , Debug , Deserialize ) ]
670
+ #[ derive( Clone , PartialEq , Eq , Debug , Deserialize , Serialize ) ]
671
671
pub struct GetTransactionResultDetail {
672
672
pub address : Option < Address < NetworkUnchecked > > ,
673
673
pub category : GetTransactionResultDetailCategory ,
@@ -680,7 +680,7 @@ pub struct GetTransactionResultDetail {
680
680
pub abandoned : Option < bool > ,
681
681
}
682
682
683
- #[ derive( Clone , PartialEq , Eq , Debug , Deserialize ) ]
683
+ #[ derive( Clone , PartialEq , Eq , Debug , Deserialize , Serialize ) ]
684
684
pub struct WalletTxInfo {
685
685
pub confirmations : i32 ,
686
686
pub blockhash : Option < bitcoin:: BlockHash > ,
@@ -697,7 +697,7 @@ pub struct WalletTxInfo {
697
697
pub wallet_conflicts : Vec < bitcoin:: Txid > ,
698
698
}
699
699
700
- #[ derive( Clone , PartialEq , Eq , Debug , Deserialize ) ]
700
+ #[ derive( Clone , PartialEq , Eq , Debug , Deserialize , Serialize ) ]
701
701
pub struct GetTransactionResult {
702
702
#[ serde( flatten) ]
703
703
pub info : WalletTxInfo ,
@@ -716,7 +716,7 @@ impl GetTransactionResult {
716
716
}
717
717
}
718
718
719
- #[ derive( Clone , PartialEq , Eq , Debug , Deserialize ) ]
719
+ #[ derive( Clone , PartialEq , Eq , Debug , Deserialize , Serialize ) ]
720
720
pub struct ListTransactionResult {
721
721
#[ serde( flatten) ]
722
722
pub info : WalletTxInfo ,
@@ -727,7 +727,7 @@ pub struct ListTransactionResult {
727
727
pub comment : Option < String > ,
728
728
}
729
729
730
- #[ derive( Clone , PartialEq , Eq , Debug , Deserialize ) ]
730
+ #[ derive( Clone , PartialEq , Eq , Debug , Deserialize , Serialize ) ]
731
731
pub struct ListSinceBlockResult {
732
732
pub transactions : Vec < ListTransactionResult > ,
733
733
#[ serde( default ) ]
@@ -1851,7 +1851,7 @@ impl serde::Serialize for SigHashType {
1851
1851
}
1852
1852
1853
1853
// Used for createrawtransaction argument.
1854
- #[ derive( Serialize , Clone , PartialEq , Eq , Debug ) ]
1854
+ #[ derive( Serialize , Clone , PartialEq , Eq , Debug , Deserialize ) ]
1855
1855
#[ serde( rename_all = "camelCase" ) ]
1856
1856
pub struct CreateRawTransactionInput {
1857
1857
pub txid : bitcoin:: Txid ,
@@ -1895,7 +1895,7 @@ pub struct FundRawTransactionOptions {
1895
1895
pub estimate_mode : Option < EstimateMode > ,
1896
1896
}
1897
1897
1898
- #[ derive( Deserialize , Clone , PartialEq , Eq , Debug ) ]
1898
+ #[ derive( Deserialize , Clone , PartialEq , Eq , Debug , Serialize ) ]
1899
1899
#[ serde( rename_all = "camelCase" ) ]
1900
1900
pub struct FundRawTransactionResult {
1901
1901
#[ serde( with = "crate::serde_hex" ) ]
@@ -1906,7 +1906,7 @@ pub struct FundRawTransactionResult {
1906
1906
pub change_position : i32 ,
1907
1907
}
1908
1908
1909
- #[ derive( Deserialize , Clone , PartialEq , Eq , Debug ) ]
1909
+ #[ derive( Deserialize , Clone , PartialEq , Eq , Debug , Serialize ) ]
1910
1910
pub struct GetBalancesResultEntry {
1911
1911
#[ serde( with = "bitcoin::amount::serde::as_btc" ) ]
1912
1912
pub trusted : Amount ,
@@ -1916,7 +1916,7 @@ pub struct GetBalancesResultEntry {
1916
1916
pub immature : Amount ,
1917
1917
}
1918
1918
1919
- #[ derive( Deserialize , Clone , PartialEq , Eq , Debug ) ]
1919
+ #[ derive( Deserialize , Clone , PartialEq , Eq , Debug , Serialize ) ]
1920
1920
#[ serde( rename_all = "camelCase" ) ]
1921
1921
pub struct GetBalancesResult {
1922
1922
pub mine : GetBalancesResultEntry ,
@@ -1930,7 +1930,7 @@ impl FundRawTransactionResult {
1930
1930
}
1931
1931
1932
1932
// Used for signrawtransaction argument.
1933
- #[ derive( Serialize , Clone , PartialEq , Debug ) ]
1933
+ #[ derive( Serialize , Clone , PartialEq , Debug , Deserialize ) ]
1934
1934
#[ serde( rename_all = "camelCase" ) ]
1935
1935
pub struct SignRawTransactionInput {
1936
1936
pub txid : bitcoin:: Txid ,
@@ -1947,7 +1947,7 @@ pub struct SignRawTransactionInput {
1947
1947
}
1948
1948
1949
1949
/// Used to represent UTXO set hash type
1950
- #[ derive( Clone , Serialize , PartialEq , Eq , Debug ) ]
1950
+ #[ derive( Clone , Serialize , PartialEq , Eq , Debug , Deserialize ) ]
1951
1951
#[ serde( rename_all = "snake_case" ) ]
1952
1952
pub enum TxOutSetHashType {
1953
1953
HashSerialized2 ,
@@ -1956,7 +1956,7 @@ pub enum TxOutSetHashType {
1956
1956
}
1957
1957
1958
1958
/// Used to specify a block hash or a height
1959
- #[ derive( Clone , Serialize , PartialEq , Eq , Debug ) ]
1959
+ #[ derive( Clone , Serialize , PartialEq , Eq , Debug , Deserialize ) ]
1960
1960
#[ serde( untagged) ]
1961
1961
pub enum HashOrHeight {
1962
1962
BlockHash ( bitcoin:: BlockHash ) ,
0 commit comments