include backup in web3connection serializer
This commit is contained in:
parent
414501fb57
commit
cac31303f3
@ -1117,13 +1117,15 @@ impl Serialize for Web3Connection {
|
||||
S: Serializer,
|
||||
{
|
||||
// 3 is the number of fields in the struct.
|
||||
let mut state = serializer.serialize_struct("Web3Connection", 8)?;
|
||||
let mut state = serializer.serialize_struct("Web3Connection", 9)?;
|
||||
|
||||
// the url is excluded because it likely includes private information. just show the name that we use in keys
|
||||
state.serialize_field("name", &self.name)?;
|
||||
// a longer name for display to users
|
||||
state.serialize_field("display_name", &self.display_name)?;
|
||||
|
||||
state.serialize_field("backup", &self.backup)?;
|
||||
|
||||
match self.block_data_limit.load(atomic::Ordering::Relaxed) {
|
||||
u64::MAX => {
|
||||
state.serialize_field("block_data_limit", &None::<()>)?;
|
||||
|
Loading…
Reference in New Issue
Block a user