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
40
41
extern crate time;
use time::*;
pub struct Date {
pub date: Tm,
}
#[derive(Debug, Deserialize)]
pub struct Author {
pub name: String,
pub email: String,
}
#[derive(Debug, Deserialize)]
pub struct Config {
pub license: Option<String>,
pub version_control: Option<String>,
pub author: Option<Author>,
}
#[derive(Debug, Deserialize, Clone)]
pub struct Directory {
pub files: Option<Vec<String>>,
pub directories: Option<Vec<String>>,
pub templates: Option<Vec<String>>,
}
#[derive(Debug, Deserialize, Clone)]
pub struct ProjectConfig {
pub version_control: Option<String>,
pub version: Option<String>,
}
#[derive(Debug, Deserialize, Clone)]
pub struct Project {
pub files: Directory,
pub config: Option<ProjectConfig>,
}