1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
use packer::AppData;
use key_mgr::KeyFile;
use std::path::{PathBuf, Path};
#[derive(Debug,Clone)]
pub struct ManifestParameters {
key_file: KeyFile,
tmp_dir_path: PathBuf,
app_info: AppData
}
impl ManifestParameters {
pub fn new(key_file: KeyFile, tmp_dir_path: PathBuf, app_info: AppData) -> ManifestParameters {
ManifestParameters { key_file, tmp_dir_path, app_info }
}
pub fn get_key_file(&self) -> &KeyFile {
&self.key_file
}
pub fn get_tmp_dir_path(&self) -> &Path {
&self.tmp_dir_path
}
pub fn get_app_data(&self) -> &AppData {
&self.app_info
}
}