diff options
| author | Bond_009 <bond.009@outlook.com> | 2020-11-14 23:19:47 +0100 |
|---|---|---|
| committer | Bond_009 <bond.009@outlook.com> | 2020-11-14 23:19:47 +0100 |
| commit | c45490ed54bcc1e42f2a723234e7baf12de55c32 (patch) | |
| tree | c5452e556a4239bc482c0c897534733841b6ebba /src/config.rs | |
First
Diffstat (limited to 'src/config.rs')
| -rw-r--r-- | src/config.rs | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/src/config.rs b/src/config.rs new file mode 100644 index 0000000..4de9021 --- /dev/null +++ b/src/config.rs @@ -0,0 +1,15 @@ +use serde::Deserialize; + +#[derive(Deserialize)] +pub struct Config { + pub default_path: String, + pub projects: Option<Vec<ProjectConfig>>, +} + +#[derive(Deserialize)] +pub struct ProjectConfig { + pub name: String, + pub path: Option<String>, + pub url: String, + pub description: Option<String>, +} |
