fix: serde

This commit is contained in:
Kingtous
2022-05-12 16:29:34 +08:00
parent 11e0d2cbf1
commit b3f523f65e
2 changed files with 10 additions and 0 deletions

View File

@@ -219,17 +219,25 @@ pub struct TransferJob {
#[derive(Debug, Default, Serialize, Deserialize, Clone)]
pub struct TransferJobMeta {
#[serde(default)]
pub id: i32,
#[serde(default)]
pub remote: String,
#[serde(default)]
pub to: String,
#[serde(default)]
pub show_hidden: bool,
#[serde(default)]
pub file_num: i32,
}
#[derive(Debug, Default, Serialize, Deserialize, Clone)]
pub struct RemoveJobMeta {
#[serde(default)]
pub path: String,
#[serde(default)]
pub is_remote: bool,
#[serde(default)]
pub no_confirm: bool,
}