From a4a570896a9e4b61cf8e48794df5d1fdeff2f109 Mon Sep 17 00:00:00 2001 From: "B. Petersen" Date: Fri, 1 May 2020 15:47:43 +0200 Subject: [PATCH] add config_defaults array to provider-db --- src/provider/mod.rs | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/provider/mod.rs b/src/provider/mod.rs index 7f7174774..fc414968f 100644 --- a/src/provider/mod.rs +++ b/src/provider/mod.rs @@ -2,6 +2,7 @@ mod data; +use crate::config::Config; use crate::dc_tools::EmailAddress; use crate::provider::data::PROVIDER_DATA; @@ -57,6 +58,12 @@ impl Server { } } +#[derive(Debug)] +pub struct ConfigDefault { + pub key: Config, + pub value: &'static str, +} + #[derive(Debug)] pub struct Provider { pub status: Status, @@ -64,6 +71,7 @@ pub struct Provider { pub after_login_hint: &'static str, pub overview_page: &'static str, pub server: Vec, + pub config_defaults: Option>, } impl Provider {