diff options
author | Linnea Gräf <nea@nea.moe> | 2024-08-28 16:34:38 +0200 |
---|---|---|
committer | Linnea Gräf <nea@nea.moe> | 2024-08-28 16:34:38 +0200 |
commit | aa5c8ee5a49000d8e0f10ce1c5c1d5a57ae88e25 (patch) | |
tree | 9525ded08e2ea48b2c50127208f99327cc9883ea /src/config.rs | |
parent | e4b9a9b40838777d4d017001fef00e1c57efbb0c (diff) | |
download | fagit-master.tar.gz fagit-master.tar.bz2 fagit-master.zip |
Diffstat (limited to 'src/config.rs')
-rw-r--r-- | src/config.rs | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/src/config.rs b/src/config.rs index 5e8cc5d..9335cca 100644 --- a/src/config.rs +++ b/src/config.rs @@ -1,5 +1,7 @@ use std::path::Path; +use serde::Deserialize; + pub fn ssh_user() -> &'static str { return "git"; } @@ -9,3 +11,13 @@ pub fn binary_path() -> &'static str { pub fn repo_store() -> &'static Path { return Path::new("/opt/fagit/store/"); } + +#[derive(Deserialize, Default)] +pub struct RepoConfig { + pub access: Vec<KeyPermission>, +} + +#[derive(Deserialize)] +pub struct KeyPermission { + key: String, +} |