From c95ee42cefc3ec85a8e5f686d4d0cfb9e3e0e6a3 Mon Sep 17 00:00:00 2001 From: realaravinth Date: Sat, 23 Jul 2022 11:51:00 +0000 Subject: [PATCH] =?UTF-8?q?Deploying=20to=20gh-pages=20from=20=20@=20a040b?= =?UTF-8?q?39558b1594412e8380df705b8d912c22cd1=20=F0=9F=9A=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- mcaptcha/constant.GIT_COMMIT_HASH.html | 2 +- mcaptcha/settings/fn.check_url.html | 2 +- mcaptcha/settings/fn.set_database_url.html | 2 +- mcaptcha/settings/index.html | 2 +- mcaptcha/settings/struct.Settings.html | 2 +- mcaptcha/struct.Settings.html | 2 +- src/mcaptcha/settings.rs.html | 6 ++++++ 7 files changed, 12 insertions(+), 6 deletions(-) diff --git a/mcaptcha/constant.GIT_COMMIT_HASH.html b/mcaptcha/constant.GIT_COMMIT_HASH.html index 2beda82e..b1a3d7c2 100644 --- a/mcaptcha/constant.GIT_COMMIT_HASH.html +++ b/mcaptcha/constant.GIT_COMMIT_HASH.html @@ -4,5 +4,5 @@
pub const GIT_COMMIT_HASH: &str = "dd726c15d1e1d3bdb80c80d056ffc26a40c5eef0";
+

Constant mcaptcha::GIT_COMMIT_HASH

source · []
pub const GIT_COMMIT_HASH: &str = "a040b39558b1594412e8380df705b8d912c22cd1";
\ No newline at end of file diff --git a/mcaptcha/settings/fn.check_url.html b/mcaptcha/settings/fn.check_url.html index de602f7b..4d6d34ac 100644 --- a/mcaptcha/settings/fn.check_url.html +++ b/mcaptcha/settings/fn.check_url.html @@ -4,5 +4,5 @@
fn check_url(s: &Config)
+

Function mcaptcha::settings::check_url

source · []
fn check_url(s: &Config)
\ No newline at end of file diff --git a/mcaptcha/settings/fn.set_database_url.html b/mcaptcha/settings/fn.set_database_url.html index 0dd4fb71..45ce7ffc 100644 --- a/mcaptcha/settings/fn.set_database_url.html +++ b/mcaptcha/settings/fn.set_database_url.html @@ -4,5 +4,5 @@
fn set_database_url(s: &mut Config)
+

Function mcaptcha::settings::set_database_url

source · []
fn set_database_url(s: &mut Config)
\ No newline at end of file diff --git a/mcaptcha/settings/index.html b/mcaptcha/settings/index.html index 926bd672..32359469 100644 --- a/mcaptcha/settings/index.html +++ b/mcaptcha/settings/index.html @@ -4,7 +4,7 @@

Structs

Enums

Functions

diff --git a/mcaptcha/settings/struct.Settings.html b/mcaptcha/settings/struct.Settings.html index 6370d0da..02a1e495 100644 --- a/mcaptcha/settings/struct.Settings.html +++ b/mcaptcha/settings/struct.Settings.html @@ -15,7 +15,7 @@ pub smtp: Option<Smtp>, pub allow_registration: bool, pub allow_demo: bool, -}

Fields

debug: boolcommercial: booldatabase: Databaseredis: Option<Redis>server: Servercaptcha: Captchasource_code: Stringsmtp: Option<Smtp>allow_registration: boolallow_demo: bool

Implementations

Trait Implementations

Returns a copy of the value. Read more

+}

Fields

debug: boolcommercial: booldatabase: Databaseredis: Option<Redis>server: Servercaptcha: Captchasource_code: Stringsmtp: Option<Smtp>allow_registration: boolallow_demo: bool

Implementations

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

Deserialize this value from the given Serde deserializer. Read more

diff --git a/mcaptcha/struct.Settings.html b/mcaptcha/struct.Settings.html index 463487bb..0acc5b9e 100644 --- a/mcaptcha/struct.Settings.html +++ b/mcaptcha/struct.Settings.html @@ -15,7 +15,7 @@ pub smtp: Option<Smtp>, pub allow_registration: bool, pub allow_demo: bool, -}

Fields

debug: boolcommercial: booldatabase: Databaseredis: Option<Redis>server: Servercaptcha: Captchasource_code: Stringsmtp: Option<Smtp>allow_registration: boolallow_demo: bool

Implementations

Trait Implementations

Returns a copy of the value. Read more

+}

Fields

debug: boolcommercial: booldatabase: Databaseredis: Option<Redis>server: Servercaptcha: Captchasource_code: Stringsmtp: Option<Smtp>allow_registration: boolallow_demo: bool

Implementations

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

Deserialize this value from the given Serde deserializer. Read more

diff --git a/src/mcaptcha/settings.rs.html b/src/mcaptcha/settings.rs.html index 6d8c076b..a98115c1 100644 --- a/src/mcaptcha/settings.rs.html +++ b/src/mcaptcha/settings.rs.html @@ -251,6 +251,9 @@ 246 247 248 +249 +250 +251
/*
  * Copyright (C) 2022  Aravinth Manivannan <realaravinth@batsense.net>
  *
@@ -428,6 +431,9 @@
             Ok(val) => {
                 let url = Url::parse(&val).expect("couldn't parse Database URL");
                 s.set("database.url", url.to_string()).unwrap();
+                let database_type = DBType::from_url(&url).unwrap();
+                s.set("database.database_type", database_type.to_string())
+                    .unwrap();
             }
             Err(e) => {
                 set_database_url(&mut s);