backup: rename Key::metadata in Key::proprietary
This commit is contained in:
parent
4e17483340
commit
2e6cceea96
@ -185,7 +185,7 @@ impl KeySetting {
|
||||
alias: Some(self.name.clone()),
|
||||
role: None,
|
||||
key_type: Some(KeyType::ThirdParty),
|
||||
metadata,
|
||||
proprietary: metadata,
|
||||
};
|
||||
}
|
||||
}
|
||||
@ -194,7 +194,7 @@ impl KeySetting {
|
||||
alias: Some(self.name.clone()),
|
||||
role: None,
|
||||
key_type: None,
|
||||
metadata: serde_json::Value::Null,
|
||||
proprietary: serde_json::Value::Null,
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@ -460,7 +460,7 @@ pub struct Key {
|
||||
#[serde(default, skip_serializing_if = "Option::is_none")]
|
||||
pub key_type: Option<KeyType>,
|
||||
#[serde(default, skip_serializing_if = "Value::is_null")]
|
||||
pub metadata: Value,
|
||||
pub proprietary: Value,
|
||||
}
|
||||
|
||||
#[derive(Debug, Serialize, Deserialize, Clone, Copy, PartialEq, Eq)]
|
||||
|
||||
@ -960,7 +960,7 @@ pub async fn import_backup(
|
||||
*k,
|
||||
v.role,
|
||||
v.key_type,
|
||||
v.metadata.clone(),
|
||||
v.proprietary.clone(),
|
||||
) {
|
||||
settings_aliases.insert(*k, ks);
|
||||
}
|
||||
@ -1099,7 +1099,7 @@ pub async fn wallet_from_backup(sender: Sender<Progress>, path: PathBuf) {
|
||||
*k,
|
||||
v.role,
|
||||
v.key_type,
|
||||
v.metadata.clone(),
|
||||
v.proprietary.clone(),
|
||||
) {
|
||||
aliases.insert(*k, ks);
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user