backup: rename Key::metadata in Key::proprietary

This commit is contained in:
pythcoiner 2025-03-18 13:20:59 +01:00
parent 4e17483340
commit 2e6cceea96
No known key found for this signature in database
GPG Key ID: C1048AEEDF303B88
3 changed files with 5 additions and 5 deletions

View File

@ -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,
}
}

View File

@ -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)]

View File

@ -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);
}