@@ -118,7 +118,7 @@ pub struct GetNetworkInfoResult {
118
118
pub incremental_fee : Amount ,
119
119
#[ serde( rename = "localaddresses" ) ]
120
120
pub local_addresses : Vec < GetNetworkInfoResultAddress > ,
121
- pub warnings : String ,
121
+ pub warnings : StringOrStringArray ,
122
122
}
123
123
124
124
#[ derive( Clone , PartialEq , Eq , Debug , Deserialize , Serialize ) ]
@@ -517,7 +517,7 @@ pub struct GetMiningInfoResult {
517
517
pub pooled_tx : usize ,
518
518
#[ serde( deserialize_with = "deserialize_bip70_network" ) ]
519
519
pub chain : Network ,
520
- pub warnings : String ,
520
+ pub warnings : StringOrStringArray ,
521
521
}
522
522
523
523
#[ derive( Clone , PartialEq , Eq , Debug , Deserialize , Serialize ) ]
@@ -1005,7 +1005,7 @@ pub struct GetAddressInfoResult {
1005
1005
}
1006
1006
1007
1007
/// Used to represent values that can either be a string or a string array.
1008
- #[ derive( Clone , Debug , Deserialize , Serialize ) ]
1008
+ #[ derive( Clone , Debug , Deserialize , PartialEq , Eq , Serialize ) ]
1009
1009
#[ serde( untagged) ]
1010
1010
pub enum StringOrStringArray {
1011
1011
String ( String ) ,
0 commit comments