diff options
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>, +} |
