aboutsummaryrefslogtreecommitdiff
path: root/src/data.rs
diff options
context:
space:
mode:
authorRoman Melnikov2023-05-05 10:53:03 +0800
committerGitHub2023-05-05 10:53:03 +0800
commit6b0b6a1c2527e8b1ef370a308b6ef8903004ac47 (patch)
treec8ec6f665d7d0f0f5aa3905e489313f0ebd7832b /src/data.rs
parentc2ea4e642dc50fd44b537e9860ec95867af30d39 (diff)
parent784e9ee24d977c99dcb5ba5aef81dae48cb899fb (diff)
Merge pull request #205 from serokell/rvem/improve-temp-path-handling
[Chore] Handle 'temp_path' as an actual 'Path' instead of 'String'
Diffstat (limited to 'src/data.rs')
-rw-r--r--src/data.rs3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/data.rs b/src/data.rs
index 90ea331..3b3e2c9 100644
--- a/src/data.rs
+++ b/src/data.rs
@@ -5,6 +5,7 @@
use merge::Merge;
use serde::Deserialize;
use std::collections::HashMap;
+use std::path::PathBuf;
#[derive(Deserialize, Debug, Clone, Merge)]
pub struct GenericSettings {
@@ -25,7 +26,7 @@ pub struct GenericSettings {
#[serde(rename(deserialize = "confirmTimeout"))]
pub confirm_timeout: Option<u16>,
#[serde(rename(deserialize = "tempPath"))]
- pub temp_path: Option<String>,
+ pub temp_path: Option<PathBuf>,
#[serde(rename(deserialize = "magicRollback"))]
pub magic_rollback: Option<bool>,
#[serde(rename(deserialize = "sudo"))]