diff options
author | Quentin Dufour <quentin@deuxfleurs.fr> | 2022-05-25 13:07:19 +0200 |
---|---|---|
committer | Quentin Dufour <quentin@deuxfleurs.fr> | 2022-05-25 13:07:19 +0200 |
commit | af25c853b9ca57ad4bc2ff65813f8a5167bd95d9 (patch) | |
tree | 7a916dcd3c402c866262e1d9ba106cadaeb6db3a /src/config.rs | |
parent | 8192d062baf7f783af9519b9419647dc907a3c8c (diff) | |
download | aerogramme-af25c853b9ca57ad4bc2ff65813f8a5167bd95d9.tar.gz aerogramme-af25c853b9ca57ad4bc2ff65813f8a5167bd95d9.zip |
Explore config file generation
Diffstat (limited to 'src/config.rs')
-rw-r--r-- | src/config.rs | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/config.rs b/src/config.rs index b77288b..6c3801c 100644 --- a/src/config.rs +++ b/src/config.rs @@ -3,9 +3,9 @@ use std::io::Read; use std::path::PathBuf; use anyhow::Result; -use serde::Deserialize; +use serde::{Serialize,Deserialize}; -#[derive(Deserialize, Debug, Clone)] +#[derive(Serialize, Deserialize, Debug, Clone)] pub struct Config { pub s3_endpoint: String, pub k2v_endpoint: String, @@ -15,13 +15,13 @@ pub struct Config { pub login_ldap: Option<LoginLdapConfig>, } -#[derive(Deserialize, Debug, Clone)] +#[derive(Serialize, Deserialize, Debug, Clone)] pub struct LoginStaticConfig { pub default_bucket: Option<String>, pub users: HashMap<String, LoginStaticUser>, } -#[derive(Deserialize, Debug, Clone)] +#[derive(Serialize, Deserialize, Debug, Clone)] pub struct LoginStaticUser { pub password: String, @@ -37,7 +37,7 @@ pub struct LoginStaticUser { pub secret_key: Option<String>, } -#[derive(Deserialize, Debug, Clone)] +#[derive(Serialize, Deserialize, Debug, Clone)] pub struct LoginLdapConfig { pub ldap_server: String, |