mirror of
https://github.com/chatmail/core.git
synced 2026-04-28 10:56:29 +03:00
add config_defaults array to provider-db
This commit is contained in:
@@ -2,6 +2,7 @@
|
|||||||
|
|
||||||
mod data;
|
mod data;
|
||||||
|
|
||||||
|
use crate::config::Config;
|
||||||
use crate::dc_tools::EmailAddress;
|
use crate::dc_tools::EmailAddress;
|
||||||
use crate::provider::data::PROVIDER_DATA;
|
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)]
|
#[derive(Debug)]
|
||||||
pub struct Provider {
|
pub struct Provider {
|
||||||
pub status: Status,
|
pub status: Status,
|
||||||
@@ -64,6 +71,7 @@ pub struct Provider {
|
|||||||
pub after_login_hint: &'static str,
|
pub after_login_hint: &'static str,
|
||||||
pub overview_page: &'static str,
|
pub overview_page: &'static str,
|
||||||
pub server: Vec<Server>,
|
pub server: Vec<Server>,
|
||||||
|
pub config_defaults: Option<Vec<ConfigDefault>>,
|
||||||
}
|
}
|
||||||
|
|
||||||
impl Provider {
|
impl Provider {
|
||||||
|
|||||||
Reference in New Issue
Block a user