diff options
author | LUXEY Adrien <adrien.luxey@inria.fr> | 2021-08-16 11:19:16 +0200 |
---|---|---|
committer | LUXEY Adrien <adrien.luxey@inria.fr> | 2021-08-16 11:19:16 +0200 |
commit | 644e7079562b3218243c98c89b5bcb47c1d1ab48 (patch) | |
tree | 572d8192c8dad6266b82536edbcfb1fba1dc75f3 /src/config/options.rs | |
parent | ae9550ce23bbc85b05669fe5ec4406c8a67417ec (diff) | |
download | diplonat-644e7079562b3218243c98c89b5bcb47c1d1ab48.tar.gz diplonat-644e7079562b3218243c98c89b5bcb47c1d1ab48.zip |
environment.rs successfully replaced with new config/ configuration loader. No API changes, more tests, cleaner code: life is swell.
Diffstat (limited to 'src/config/options.rs')
-rw-r--r-- | src/config/options.rs | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/src/config/options.rs b/src/config/options.rs index a76cf57..27b1af1 100644 --- a/src/config/options.rs +++ b/src/config/options.rs @@ -9,7 +9,7 @@ use crate::config::RuntimeConfig; // runtime.rs applies business logic and builds RuntimeConfig structs. /// Base configuration options -#[derive(Clone, Debug, Default, Deserialize)] +#[derive(Clone, Default, Deserialize)] pub struct ConfigOptsBase { /// This node's private IP address [default: None] pub private_ip: Option<String>, @@ -20,7 +20,7 @@ pub struct ConfigOptsBase { } /// ACME configuration options -#[derive(Clone, Debug, Default, Deserialize)] +#[derive(Clone, Default, Deserialize)] pub struct ConfigOptsAcme { /// Whether ACME is enabled [default: false] #[serde(default)] @@ -31,7 +31,7 @@ pub struct ConfigOptsAcme { } /// Consul configuration options -#[derive(Clone, Debug, Default, Deserialize)] +#[derive(Clone, Default, Deserialize)] pub struct ConfigOptsConsul { /// Consul's node name [default: None] pub node_name: Option<String>, @@ -40,7 +40,6 @@ pub struct ConfigOptsConsul { } /// Model of all potential configuration options -#[derive(Debug)] pub struct ConfigOpts { pub base: ConfigOptsBase, pub acme: ConfigOptsAcme, |