diff --git a/mcaptcha/settings/index.html b/mcaptcha/settings/index.html index ca14ce40..72620a15 100644 --- a/mcaptcha/settings/index.html +++ b/mcaptcha/settings/index.html @@ -1 +1 @@ -mcaptcha::settings - Rust

Module mcaptcha::settings

source ·

Structs

Enums

Constants

\ No newline at end of file +mcaptcha::settings - Rust

Module mcaptcha::settings

source ·

Structs

Enums

Constants

\ No newline at end of file diff --git a/mcaptcha/settings/struct.Settings.html b/mcaptcha/settings/struct.Settings.html index bfd331aa..122c1134 100644 --- a/mcaptcha/settings/struct.Settings.html +++ b/mcaptcha/settings/struct.Settings.html @@ -9,7 +9,7 @@ pub server: Server, pub captcha: Captcha, pub smtp: Option<Smtp>, -}

Fields§

§debug: bool§commercial: bool§source_code: String§allow_registration: bool§allow_demo: bool§database: Database§redis: Option<Redis>§server: Server§captcha: Captcha§smtp: Option<Smtp>

Implementations§

source§

impl Settings

source

pub fn new() -> Result<Self, ConfigError>

source

fn env_override(s: ConfigBuilder<DefaultState>) -> ConfigBuilder<DefaultState>

source

fn set_database_type(&mut self)

source

fn check_url(&self)

Trait Implementations§

source§

impl Clone for Settings

source§

fn clone(&self) -> Settings

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl Debug for Settings

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl<'de> Deserialize<'de> for Settings

source§

fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where +}

Fields§

§debug: bool§commercial: bool§source_code: String§allow_registration: bool§allow_demo: bool§database: Database§redis: Option<Redis>§server: Server§captcha: Captcha§smtp: Option<Smtp>

Implementations§

source§

impl Settings

source

pub fn new() -> Result<Self, ConfigError>

source

fn env_override(s: ConfigBuilder<DefaultState>) -> ConfigBuilder<DefaultState>

source

fn set_database_type(&mut self)

source

fn check_url(&self)

Trait Implementations§

source§

impl Clone for Settings

source§

fn clone(&self) -> Settings

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl Debug for Settings

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl<'de> Deserialize<'de> for Settings

source§

fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where __D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more
source§

impl PartialEq<Settings> for Settings

source§

fn eq(&self, other: &Settings) -> bool

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
source§

impl Eq for Settings

source§

impl StructuralEq for Settings

source§

impl StructuralPartialEq for Settings

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for Twhere diff --git a/mcaptcha/struct.SETTINGS.html b/mcaptcha/struct.SETTINGS.html index 0f694b02..003ea980 100644 --- a/mcaptcha/struct.SETTINGS.html +++ b/mcaptcha/struct.SETTINGS.html @@ -1,6 +1,6 @@ SETTINGS in mcaptcha - Rust

Struct mcaptcha::SETTINGS

source ·
pub struct SETTINGS {
     pub(crate) __private_field: (),
-}

Fields§

§__private_field: ()

Methods from Deref<Target = Settings>§

source

fn check_url(&self)

Trait Implementations§

source§

impl Deref for SETTINGS

§

type Target = Settings

The resulting type after dereferencing.
source§

fn deref(&self) -> &Settings

Dereferences the value.
source§

impl LazyStatic for SETTINGS

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for Twhere +}

Fields§

§__private_field: ()

Methods from Deref<Target = Settings>§

source

fn check_url(&self)

Trait Implementations§

source§

impl Deref for SETTINGS

§

type Target = Settings

The resulting type after dereferencing.
source§

fn deref(&self) -> &Settings

Dereferences the value.
source§

impl LazyStatic for SETTINGS

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for Twhere T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for Twhere T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

diff --git a/mcaptcha/struct.Settings.html b/mcaptcha/struct.Settings.html index 72d06e0a..4e7686ee 100644 --- a/mcaptcha/struct.Settings.html +++ b/mcaptcha/struct.Settings.html @@ -9,7 +9,7 @@ pub server: Server, pub captcha: Captcha, pub smtp: Option<Smtp>, -}

Fields§

§debug: bool§commercial: bool§source_code: String§allow_registration: bool§allow_demo: bool§database: Database§redis: Option<Redis>§server: Server§captcha: Captcha§smtp: Option<Smtp>

Implementations§

source§

impl Settings

source

pub fn new() -> Result<Self, ConfigError>

source

fn env_override(s: ConfigBuilder<DefaultState>) -> ConfigBuilder<DefaultState>

source

fn set_database_type(&mut self)

source

fn check_url(&self)

Trait Implementations§

source§

impl Clone for Settings

source§

fn clone(&self) -> Settings

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl Debug for Settings

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl<'de> Deserialize<'de> for Settings

source§

fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where +}

Fields§

§debug: bool§commercial: bool§source_code: String§allow_registration: bool§allow_demo: bool§database: Database§redis: Option<Redis>§server: Server§captcha: Captcha§smtp: Option<Smtp>

Implementations§

source§

impl Settings

source

pub fn new() -> Result<Self, ConfigError>

source

fn env_override(s: ConfigBuilder<DefaultState>) -> ConfigBuilder<DefaultState>

source

fn set_database_type(&mut self)

source

fn check_url(&self)

Trait Implementations§

source§

impl Clone for Settings

source§

fn clone(&self) -> Settings

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl Debug for Settings

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl<'de> Deserialize<'de> for Settings

source§

fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where __D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more
source§

impl PartialEq<Settings> for Settings

source§

fn eq(&self, other: &Settings) -> bool

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
source§

impl Eq for Settings

source§

impl StructuralEq for Settings

source§

impl StructuralPartialEq for Settings

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for Twhere diff --git a/src/mcaptcha/settings.rs.html b/src/mcaptcha/settings.rs.html index 64e0451b..81f11a87 100644 --- a/src/mcaptcha/settings.rs.html +++ b/src/mcaptcha/settings.rs.html @@ -404,7 +404,6 @@ 404 405 406 -407

// Copyright (C) 2022  Aravinth Manivannan <realaravinth@batsense.net>
 // SPDX-FileCopyrightText: 2023 Aravinth Manivannan <realaravinth@batsense.net>
 //
@@ -618,7 +617,6 @@
 
     fn env_override(mut s: ConfigBuilder<DefaultState>) -> ConfigBuilder<DefaultState> {
         for (parameter, env_var_name) in ENV_VAR_CONFIG.iter() {
-            println!("[{env_var_name}]{:?}", env::var(env_var_name));
             if let Ok(val) = env::var(env_var_name) {
                 log::debug!(
                     "Overriding [{parameter}] with environment variable {env_var_name}"