From 49538a56a4c444eb1361ddabe63bdf5f333e7f7b Mon Sep 17 00:00:00 2001 From: realaravinth Date: Mon, 24 Oct 2022 16:35:47 +0000 Subject: [PATCH] =?UTF-8?q?Deploying=20to=20gh-pages=20from=20=20@=20ac502?= =?UTF-8?q?b7c0862a71be5a85d4d3785b4f56e168d25=20=F0=9F=9A=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- db_sqlx_maria/dev/dev/ops/trait.Connect.html | 2 +- db_sqlx_maria/dev/dev/ops/trait.Migrate.html | 2 +- .../dev/dev/prelude/struct.Notification.html | 2 +- .../dev/dev/prelude/trait.Connect.html | 2 +- .../dev/dev/prelude/trait.MCDatabase.html | 2 +- .../dev/dev/prelude/trait.Migrate.html | 2 +- .../dev/dev/struct.Notification.html | 2 +- db_sqlx_maria/dev/dev/trait.Connect.html | 2 +- db_sqlx_maria/dev/dev/trait.MCDatabase.html | 2 +- db_sqlx_maria/dev/dev/trait.Migrate.html | 2 +- db_sqlx_maria/dev/ops/trait.Connect.html | 2 +- db_sqlx_maria/dev/ops/trait.Migrate.html | 2 +- .../dev/prelude/dev/struct.Notification.html | 2 +- .../dev/prelude/dev/trait.Connect.html | 2 +- .../dev/prelude/dev/trait.MCDatabase.html | 2 +- .../dev/prelude/dev/trait.Migrate.html | 2 +- .../dev/prelude/struct.Notification.html | 2 +- db_sqlx_maria/dev/prelude/trait.Connect.html | 2 +- .../dev/prelude/trait.MCDatabase.html | 2 +- db_sqlx_maria/dev/prelude/trait.Migrate.html | 2 +- db_sqlx_maria/dev/struct.Notification.html | 2 +- db_sqlx_maria/dev/trait.Connect.html | 2 +- db_sqlx_maria/dev/trait.MCDatabase.html | 2 +- db_sqlx_maria/dev/trait.Migrate.html | 2 +- db_sqlx_maria/enum.ConnectionOptions.html | 4 +- db_sqlx_maria/index.html | 2 +- .../dev/prelude/struct.Notification.html | 2 +- .../prelude/dev/prelude/trait.Connect.html | 2 +- .../prelude/dev/prelude/trait.MCDatabase.html | 2 +- .../prelude/dev/prelude/trait.Migrate.html | 2 +- .../prelude/dev/struct.Notification.html | 2 +- db_sqlx_maria/prelude/dev/trait.Connect.html | 2 +- .../prelude/dev/trait.MCDatabase.html | 2 +- db_sqlx_maria/prelude/dev/trait.Migrate.html | 2 +- db_sqlx_maria/prelude/ops/trait.Connect.html | 2 +- db_sqlx_maria/prelude/ops/trait.Migrate.html | 2 +- .../prelude/struct.Notification.html | 2 +- db_sqlx_maria/prelude/trait.Connect.html | 2 +- db_sqlx_maria/prelude/trait.MCDatabase.html | 2 +- db_sqlx_maria/prelude/trait.Migrate.html | 2 +- db_sqlx_maria/struct.Database.html | 74 +++++++++---------- db_sqlx_maria/struct.InnerNotification.html | 14 ++-- .../dev/dev/ops/trait.Connect.html | 2 +- .../dev/dev/ops/trait.Migrate.html | 2 +- .../dev/dev/prelude/struct.Notification.html | 2 +- .../dev/dev/prelude/trait.Connect.html | 2 +- .../dev/dev/prelude/trait.MCDatabase.html | 2 +- .../dev/dev/prelude/trait.Migrate.html | 2 +- .../dev/dev/struct.Notification.html | 2 +- db_sqlx_postgres/dev/dev/trait.Connect.html | 2 +- .../dev/dev/trait.MCDatabase.html | 2 +- db_sqlx_postgres/dev/dev/trait.Migrate.html | 2 +- db_sqlx_postgres/dev/ops/trait.Connect.html | 2 +- db_sqlx_postgres/dev/ops/trait.Migrate.html | 2 +- .../dev/prelude/dev/struct.Notification.html | 2 +- .../dev/prelude/dev/trait.Connect.html | 2 +- .../dev/prelude/dev/trait.MCDatabase.html | 2 +- .../dev/prelude/dev/trait.Migrate.html | 2 +- .../dev/prelude/struct.Notification.html | 2 +- .../dev/prelude/trait.Connect.html | 2 +- .../dev/prelude/trait.MCDatabase.html | 2 +- .../dev/prelude/trait.Migrate.html | 2 +- db_sqlx_postgres/dev/struct.Notification.html | 2 +- db_sqlx_postgres/dev/trait.Connect.html | 2 +- db_sqlx_postgres/dev/trait.MCDatabase.html | 2 +- db_sqlx_postgres/dev/trait.Migrate.html | 2 +- db_sqlx_postgres/enum.ConnectionOptions.html | 4 +- db_sqlx_postgres/index.html | 2 +- .../dev/prelude/struct.Notification.html | 2 +- .../prelude/dev/prelude/trait.Connect.html | 2 +- .../prelude/dev/prelude/trait.MCDatabase.html | 2 +- .../prelude/dev/prelude/trait.Migrate.html | 2 +- .../prelude/dev/struct.Notification.html | 2 +- .../prelude/dev/trait.Connect.html | 2 +- .../prelude/dev/trait.MCDatabase.html | 2 +- .../prelude/dev/trait.Migrate.html | 2 +- .../prelude/ops/trait.Connect.html | 2 +- .../prelude/ops/trait.Migrate.html | 2 +- .../prelude/struct.Notification.html | 2 +- db_sqlx_postgres/prelude/trait.Connect.html | 2 +- .../prelude/trait.MCDatabase.html | 2 +- db_sqlx_postgres/prelude/trait.Migrate.html | 2 +- db_sqlx_postgres/struct.Database.html | 74 +++++++++---------- .../struct.InnerNotification.html | 16 ++-- 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/db_sqlx_maria/lib.rs.html | 6 -- src/db_sqlx_postgres/lib.rs.html | 6 -- src/mcaptcha/settings.rs.html | 48 +++++++++--- 92 files changed, 213 insertions(+), 199 deletions(-) diff --git a/db_sqlx_maria/dev/dev/ops/trait.Connect.html b/db_sqlx_maria/dev/dev/ops/trait.Connect.html index ae199dd6..9906ed40 100644 --- a/db_sqlx_maria/dev/dev/ops/trait.Connect.html +++ b/db_sqlx_maria/dev/dev/ops/trait.Connect.html @@ -6,4 +6,4 @@

Required Associated Types

database specific pool-type

Required Methods

database specific error-type create connection pool

-

Implementors

\ No newline at end of file +

Implementors

\ No newline at end of file diff --git a/db_sqlx_maria/dev/dev/ops/trait.Migrate.html b/db_sqlx_maria/dev/dev/ops/trait.Migrate.html index 3b421358..0bbc8f6c 100644 --- a/db_sqlx_maria/dev/dev/ops/trait.Migrate.html +++ b/db_sqlx_maria/dev/dev/ops/trait.Migrate.html @@ -3,4 +3,4 @@ }
Expand description

database migrations

Required Methods

database specific error-type run migrations

-

Implementors

\ No newline at end of file +

Implementors

\ No newline at end of file diff --git a/db_sqlx_maria/dev/dev/prelude/struct.Notification.html b/db_sqlx_maria/dev/dev/prelude/struct.Notification.html index 0495a5c2..aa1db786 100644 --- a/db_sqlx_maria/dev/dev/prelude/struct.Notification.html +++ b/db_sqlx_maria/dev/dev/prelude/struct.Notification.html @@ -15,7 +15,7 @@

Formats the value using the given formatter. Read more

Returns the “default value” for a type. Read more

Deserialize this value from the given Serde deserializer. Read more

-

Converts to this type from the input type.

+

Converts to this type from the input type.

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

diff --git a/db_sqlx_maria/dev/dev/prelude/trait.Connect.html b/db_sqlx_maria/dev/dev/prelude/trait.Connect.html index 54f03009..17df381e 100644 --- a/db_sqlx_maria/dev/dev/prelude/trait.Connect.html +++ b/db_sqlx_maria/dev/dev/prelude/trait.Connect.html @@ -6,4 +6,4 @@

Required Associated Types

database specific pool-type

Required Methods

database specific error-type create connection pool

-

Implementors

\ No newline at end of file +

Implementors

\ No newline at end of file diff --git a/db_sqlx_maria/dev/dev/prelude/trait.MCDatabase.html b/db_sqlx_maria/dev/dev/prelude/trait.MCDatabase.html index 71b9b192..f6ca7314 100644 --- a/db_sqlx_maria/dev/dev/prelude/trait.MCDatabase.html +++ b/db_sqlx_maria/dev/dev/prelude/trait.MCDatabase.html @@ -73,4 +73,4 @@ trait.

fetch PoWConfig fetches

fetch PoWConfig solves

fetch PoWConfig confirms

-

Implementors

\ No newline at end of file +

Implementors

\ No newline at end of file diff --git a/db_sqlx_maria/dev/dev/prelude/trait.Migrate.html b/db_sqlx_maria/dev/dev/prelude/trait.Migrate.html index 2d3eea02..050e6eb9 100644 --- a/db_sqlx_maria/dev/dev/prelude/trait.Migrate.html +++ b/db_sqlx_maria/dev/dev/prelude/trait.Migrate.html @@ -3,4 +3,4 @@ }
Expand description

database migrations

Required Methods

database specific error-type run migrations

-

Implementors

\ No newline at end of file +

Implementors

\ No newline at end of file diff --git a/db_sqlx_maria/dev/dev/struct.Notification.html b/db_sqlx_maria/dev/dev/struct.Notification.html index 20000f5b..3ae31210 100644 --- a/db_sqlx_maria/dev/dev/struct.Notification.html +++ b/db_sqlx_maria/dev/dev/struct.Notification.html @@ -15,7 +15,7 @@

Formats the value using the given formatter. Read more

Returns the “default value” for a type. Read more

Deserialize this value from the given Serde deserializer. Read more

-

Converts to this type from the input type.

+

Converts to this type from the input type.

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

diff --git a/db_sqlx_maria/dev/dev/trait.Connect.html b/db_sqlx_maria/dev/dev/trait.Connect.html index f8b37966..4550f9bd 100644 --- a/db_sqlx_maria/dev/dev/trait.Connect.html +++ b/db_sqlx_maria/dev/dev/trait.Connect.html @@ -6,4 +6,4 @@

Required Associated Types

database specific pool-type

Required Methods

database specific error-type create connection pool

-

Implementors

\ No newline at end of file +

Implementors

\ No newline at end of file diff --git a/db_sqlx_maria/dev/dev/trait.MCDatabase.html b/db_sqlx_maria/dev/dev/trait.MCDatabase.html index f5bc543b..f8832944 100644 --- a/db_sqlx_maria/dev/dev/trait.MCDatabase.html +++ b/db_sqlx_maria/dev/dev/trait.MCDatabase.html @@ -73,4 +73,4 @@ trait.

fetch PoWConfig fetches

fetch PoWConfig solves

fetch PoWConfig confirms

-

Implementors

\ No newline at end of file +

Implementors

\ No newline at end of file diff --git a/db_sqlx_maria/dev/dev/trait.Migrate.html b/db_sqlx_maria/dev/dev/trait.Migrate.html index 470674f2..4e64c9ce 100644 --- a/db_sqlx_maria/dev/dev/trait.Migrate.html +++ b/db_sqlx_maria/dev/dev/trait.Migrate.html @@ -3,4 +3,4 @@ }
Expand description

database migrations

Required Methods

database specific error-type run migrations

-

Implementors

\ No newline at end of file +

Implementors

\ No newline at end of file diff --git a/db_sqlx_maria/dev/ops/trait.Connect.html b/db_sqlx_maria/dev/ops/trait.Connect.html index 219c1426..8105a644 100644 --- a/db_sqlx_maria/dev/ops/trait.Connect.html +++ b/db_sqlx_maria/dev/ops/trait.Connect.html @@ -6,4 +6,4 @@

Required Associated Types

database specific pool-type

Required Methods

database specific error-type create connection pool

-

Implementors

\ No newline at end of file +

Implementors

\ No newline at end of file diff --git a/db_sqlx_maria/dev/ops/trait.Migrate.html b/db_sqlx_maria/dev/ops/trait.Migrate.html index 502afad1..d533e006 100644 --- a/db_sqlx_maria/dev/ops/trait.Migrate.html +++ b/db_sqlx_maria/dev/ops/trait.Migrate.html @@ -3,4 +3,4 @@ }
Expand description

database migrations

Required Methods

database specific error-type run migrations

-

Implementors

\ No newline at end of file +

Implementors

\ No newline at end of file diff --git a/db_sqlx_maria/dev/prelude/dev/struct.Notification.html b/db_sqlx_maria/dev/prelude/dev/struct.Notification.html index 7a35fbcd..a2968230 100644 --- a/db_sqlx_maria/dev/prelude/dev/struct.Notification.html +++ b/db_sqlx_maria/dev/prelude/dev/struct.Notification.html @@ -15,7 +15,7 @@

Formats the value using the given formatter. Read more

Returns the “default value” for a type. Read more

Deserialize this value from the given Serde deserializer. Read more

-

Converts to this type from the input type.

+

Converts to this type from the input type.

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

diff --git a/db_sqlx_maria/dev/prelude/dev/trait.Connect.html b/db_sqlx_maria/dev/prelude/dev/trait.Connect.html index ca131d77..4bf03c74 100644 --- a/db_sqlx_maria/dev/prelude/dev/trait.Connect.html +++ b/db_sqlx_maria/dev/prelude/dev/trait.Connect.html @@ -6,4 +6,4 @@

Required Associated Types

database specific pool-type

Required Methods

database specific error-type create connection pool

-

Implementors

\ No newline at end of file +

Implementors

\ No newline at end of file diff --git a/db_sqlx_maria/dev/prelude/dev/trait.MCDatabase.html b/db_sqlx_maria/dev/prelude/dev/trait.MCDatabase.html index efc7c5c4..271696d6 100644 --- a/db_sqlx_maria/dev/prelude/dev/trait.MCDatabase.html +++ b/db_sqlx_maria/dev/prelude/dev/trait.MCDatabase.html @@ -73,4 +73,4 @@ trait.

fetch PoWConfig fetches

fetch PoWConfig solves

fetch PoWConfig confirms

-

Implementors

\ No newline at end of file +

Implementors

\ No newline at end of file diff --git a/db_sqlx_maria/dev/prelude/dev/trait.Migrate.html b/db_sqlx_maria/dev/prelude/dev/trait.Migrate.html index a0b0f2e8..29454655 100644 --- a/db_sqlx_maria/dev/prelude/dev/trait.Migrate.html +++ b/db_sqlx_maria/dev/prelude/dev/trait.Migrate.html @@ -3,4 +3,4 @@ }
Expand description

database migrations

Required Methods

database specific error-type run migrations

-

Implementors

\ No newline at end of file +

Implementors

\ No newline at end of file diff --git a/db_sqlx_maria/dev/prelude/struct.Notification.html b/db_sqlx_maria/dev/prelude/struct.Notification.html index df75ac9c..2d46732a 100644 --- a/db_sqlx_maria/dev/prelude/struct.Notification.html +++ b/db_sqlx_maria/dev/prelude/struct.Notification.html @@ -15,7 +15,7 @@

Formats the value using the given formatter. Read more

Returns the “default value” for a type. Read more

Deserialize this value from the given Serde deserializer. Read more

-

Converts to this type from the input type.

+

Converts to this type from the input type.

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

diff --git a/db_sqlx_maria/dev/prelude/trait.Connect.html b/db_sqlx_maria/dev/prelude/trait.Connect.html index 46843a77..56305655 100644 --- a/db_sqlx_maria/dev/prelude/trait.Connect.html +++ b/db_sqlx_maria/dev/prelude/trait.Connect.html @@ -6,4 +6,4 @@

Required Associated Types

database specific pool-type

Required Methods

database specific error-type create connection pool

-

Implementors

\ No newline at end of file +

Implementors

\ No newline at end of file diff --git a/db_sqlx_maria/dev/prelude/trait.MCDatabase.html b/db_sqlx_maria/dev/prelude/trait.MCDatabase.html index 5db051ec..1d066376 100644 --- a/db_sqlx_maria/dev/prelude/trait.MCDatabase.html +++ b/db_sqlx_maria/dev/prelude/trait.MCDatabase.html @@ -73,4 +73,4 @@ trait.

fetch PoWConfig fetches

fetch PoWConfig solves

fetch PoWConfig confirms

-

Implementors

\ No newline at end of file +

Implementors

\ No newline at end of file diff --git a/db_sqlx_maria/dev/prelude/trait.Migrate.html b/db_sqlx_maria/dev/prelude/trait.Migrate.html index 12f73165..d3be0453 100644 --- a/db_sqlx_maria/dev/prelude/trait.Migrate.html +++ b/db_sqlx_maria/dev/prelude/trait.Migrate.html @@ -3,4 +3,4 @@ }
Expand description

database migrations

Required Methods

database specific error-type run migrations

-

Implementors

\ No newline at end of file +

Implementors

\ No newline at end of file diff --git a/db_sqlx_maria/dev/struct.Notification.html b/db_sqlx_maria/dev/struct.Notification.html index bca4a90f..99dd7459 100644 --- a/db_sqlx_maria/dev/struct.Notification.html +++ b/db_sqlx_maria/dev/struct.Notification.html @@ -15,7 +15,7 @@

Formats the value using the given formatter. Read more

Returns the “default value” for a type. Read more

Deserialize this value from the given Serde deserializer. Read more

-

Converts to this type from the input type.

+

Converts to this type from the input type.

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

diff --git a/db_sqlx_maria/dev/trait.Connect.html b/db_sqlx_maria/dev/trait.Connect.html index 1229a056..c66aefaa 100644 --- a/db_sqlx_maria/dev/trait.Connect.html +++ b/db_sqlx_maria/dev/trait.Connect.html @@ -6,4 +6,4 @@

Required Associated Types

database specific pool-type

Required Methods

database specific error-type create connection pool

-

Implementors

\ No newline at end of file +

Implementors

\ No newline at end of file diff --git a/db_sqlx_maria/dev/trait.MCDatabase.html b/db_sqlx_maria/dev/trait.MCDatabase.html index a3a3cea1..eddc7475 100644 --- a/db_sqlx_maria/dev/trait.MCDatabase.html +++ b/db_sqlx_maria/dev/trait.MCDatabase.html @@ -73,4 +73,4 @@ trait.

fetch PoWConfig fetches

fetch PoWConfig solves

fetch PoWConfig confirms

-

Implementors

\ No newline at end of file +

Implementors

\ No newline at end of file diff --git a/db_sqlx_maria/dev/trait.Migrate.html b/db_sqlx_maria/dev/trait.Migrate.html index 1b406675..0fb8f1cb 100644 --- a/db_sqlx_maria/dev/trait.Migrate.html +++ b/db_sqlx_maria/dev/trait.Migrate.html @@ -3,4 +3,4 @@ }
Expand description

database migrations

Required Methods

database specific error-type run migrations

-

Implementors

\ No newline at end of file +

Implementors

\ No newline at end of file diff --git a/db_sqlx_maria/enum.ConnectionOptions.html b/db_sqlx_maria/enum.ConnectionOptions.html index 52e0a065..b7c55c62 100644 --- a/db_sqlx_maria/enum.ConnectionOptions.html +++ b/db_sqlx_maria/enum.ConnectionOptions.html @@ -4,8 +4,8 @@ }
Expand description

Connect to database

Variants

Fresh(Fresh)

fresh connection

Existing(Conn)

existing connection

-

Trait Implementations

database specific pool-type

-

database specific error-type +

Trait Implementations

database specific pool-type

+

database specific error-type create connection pool Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

diff --git a/db_sqlx_maria/index.html b/db_sqlx_maria/index.html index b09fb9eb..a8d50a9e 100644 --- a/db_sqlx_maria/index.html +++ b/db_sqlx_maria/index.html @@ -1,4 +1,4 @@ -db_sqlx_maria - Rust

Modules

Error-handling utilities

+db_sqlx_maria - Rust

Modules

Error-handling utilities

Structs

Use an existing database pool

Represents notification

Enums

Connect to database

diff --git a/db_sqlx_maria/prelude/dev/prelude/struct.Notification.html b/db_sqlx_maria/prelude/dev/prelude/struct.Notification.html index 7f33c455..b056e81c 100644 --- a/db_sqlx_maria/prelude/dev/prelude/struct.Notification.html +++ b/db_sqlx_maria/prelude/dev/prelude/struct.Notification.html @@ -15,7 +15,7 @@

Formats the value using the given formatter. Read more

Returns the “default value” for a type. Read more

Deserialize this value from the given Serde deserializer. Read more

-

Converts to this type from the input type.

+

Converts to this type from the input type.

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

diff --git a/db_sqlx_maria/prelude/dev/prelude/trait.Connect.html b/db_sqlx_maria/prelude/dev/prelude/trait.Connect.html index 03e7eee3..69914200 100644 --- a/db_sqlx_maria/prelude/dev/prelude/trait.Connect.html +++ b/db_sqlx_maria/prelude/dev/prelude/trait.Connect.html @@ -6,4 +6,4 @@

Required Associated Types

database specific pool-type

Required Methods

database specific error-type create connection pool

-

Implementors

\ No newline at end of file +

Implementors

\ No newline at end of file diff --git a/db_sqlx_maria/prelude/dev/prelude/trait.MCDatabase.html b/db_sqlx_maria/prelude/dev/prelude/trait.MCDatabase.html index d6fc47f4..086d7d27 100644 --- a/db_sqlx_maria/prelude/dev/prelude/trait.MCDatabase.html +++ b/db_sqlx_maria/prelude/dev/prelude/trait.MCDatabase.html @@ -73,4 +73,4 @@ trait.

fetch PoWConfig fetches

fetch PoWConfig solves

fetch PoWConfig confirms

-

Implementors

\ No newline at end of file +

Implementors

\ No newline at end of file diff --git a/db_sqlx_maria/prelude/dev/prelude/trait.Migrate.html b/db_sqlx_maria/prelude/dev/prelude/trait.Migrate.html index 24180d85..cb8edbdf 100644 --- a/db_sqlx_maria/prelude/dev/prelude/trait.Migrate.html +++ b/db_sqlx_maria/prelude/dev/prelude/trait.Migrate.html @@ -3,4 +3,4 @@ }
Expand description

database migrations

Required Methods

database specific error-type run migrations

-

Implementors

\ No newline at end of file +

Implementors

\ No newline at end of file diff --git a/db_sqlx_maria/prelude/dev/struct.Notification.html b/db_sqlx_maria/prelude/dev/struct.Notification.html index 14767d5e..7896a6b0 100644 --- a/db_sqlx_maria/prelude/dev/struct.Notification.html +++ b/db_sqlx_maria/prelude/dev/struct.Notification.html @@ -15,7 +15,7 @@

Formats the value using the given formatter. Read more

Returns the “default value” for a type. Read more

Deserialize this value from the given Serde deserializer. Read more

-

Converts to this type from the input type.

+

Converts to this type from the input type.

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

diff --git a/db_sqlx_maria/prelude/dev/trait.Connect.html b/db_sqlx_maria/prelude/dev/trait.Connect.html index 9eb35d43..b7e5350c 100644 --- a/db_sqlx_maria/prelude/dev/trait.Connect.html +++ b/db_sqlx_maria/prelude/dev/trait.Connect.html @@ -6,4 +6,4 @@

Required Associated Types

database specific pool-type

Required Methods

database specific error-type create connection pool

-

Implementors

\ No newline at end of file +

Implementors

\ No newline at end of file diff --git a/db_sqlx_maria/prelude/dev/trait.MCDatabase.html b/db_sqlx_maria/prelude/dev/trait.MCDatabase.html index 8effc1d1..fa3b8751 100644 --- a/db_sqlx_maria/prelude/dev/trait.MCDatabase.html +++ b/db_sqlx_maria/prelude/dev/trait.MCDatabase.html @@ -73,4 +73,4 @@ trait.

fetch PoWConfig fetches

fetch PoWConfig solves

fetch PoWConfig confirms

-

Implementors

\ No newline at end of file +

Implementors

\ No newline at end of file diff --git a/db_sqlx_maria/prelude/dev/trait.Migrate.html b/db_sqlx_maria/prelude/dev/trait.Migrate.html index 4363ef35..6792b694 100644 --- a/db_sqlx_maria/prelude/dev/trait.Migrate.html +++ b/db_sqlx_maria/prelude/dev/trait.Migrate.html @@ -3,4 +3,4 @@ }
Expand description

database migrations

Required Methods

database specific error-type run migrations

-

Implementors

\ No newline at end of file +

Implementors

\ No newline at end of file diff --git a/db_sqlx_maria/prelude/ops/trait.Connect.html b/db_sqlx_maria/prelude/ops/trait.Connect.html index 4007f816..59e12c5c 100644 --- a/db_sqlx_maria/prelude/ops/trait.Connect.html +++ b/db_sqlx_maria/prelude/ops/trait.Connect.html @@ -6,4 +6,4 @@

Required Associated Types

database specific pool-type

Required Methods

database specific error-type create connection pool

-

Implementors

\ No newline at end of file +

Implementors

\ No newline at end of file diff --git a/db_sqlx_maria/prelude/ops/trait.Migrate.html b/db_sqlx_maria/prelude/ops/trait.Migrate.html index 38c350cf..a8cc1464 100644 --- a/db_sqlx_maria/prelude/ops/trait.Migrate.html +++ b/db_sqlx_maria/prelude/ops/trait.Migrate.html @@ -3,4 +3,4 @@ }
Expand description

database migrations

Required Methods

database specific error-type run migrations

-

Implementors

\ No newline at end of file +

Implementors

\ No newline at end of file diff --git a/db_sqlx_maria/prelude/struct.Notification.html b/db_sqlx_maria/prelude/struct.Notification.html index 6317f8a7..db441677 100644 --- a/db_sqlx_maria/prelude/struct.Notification.html +++ b/db_sqlx_maria/prelude/struct.Notification.html @@ -15,7 +15,7 @@

Formats the value using the given formatter. Read more

Returns the “default value” for a type. Read more

Deserialize this value from the given Serde deserializer. Read more

-

Converts to this type from the input type.

+

Converts to this type from the input type.

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

diff --git a/db_sqlx_maria/prelude/trait.Connect.html b/db_sqlx_maria/prelude/trait.Connect.html index a30427ca..e2645f7a 100644 --- a/db_sqlx_maria/prelude/trait.Connect.html +++ b/db_sqlx_maria/prelude/trait.Connect.html @@ -6,4 +6,4 @@

Required Associated Types

database specific pool-type

Required Methods

database specific error-type create connection pool

-

Implementors

\ No newline at end of file +

Implementors

\ No newline at end of file diff --git a/db_sqlx_maria/prelude/trait.MCDatabase.html b/db_sqlx_maria/prelude/trait.MCDatabase.html index 808e8d59..719eed87 100644 --- a/db_sqlx_maria/prelude/trait.MCDatabase.html +++ b/db_sqlx_maria/prelude/trait.MCDatabase.html @@ -73,4 +73,4 @@ trait.

fetch PoWConfig fetches

fetch PoWConfig solves

fetch PoWConfig confirms

-

Implementors

\ No newline at end of file +

Implementors

\ No newline at end of file diff --git a/db_sqlx_maria/prelude/trait.Migrate.html b/db_sqlx_maria/prelude/trait.Migrate.html index afc26cc2..73f4ad1f 100644 --- a/db_sqlx_maria/prelude/trait.Migrate.html +++ b/db_sqlx_maria/prelude/trait.Migrate.html @@ -3,4 +3,4 @@ }
Expand description

database migrations

Required Methods

database specific error-type run migrations

-

Implementors

\ No newline at end of file +

Implementors

\ No newline at end of file diff --git a/db_sqlx_maria/struct.Database.html b/db_sqlx_maria/struct.Database.html index 08618e58..18e9826a 100644 --- a/db_sqlx_maria/struct.Database.html +++ b/db_sqlx_maria/struct.Database.html @@ -2,43 +2,43 @@ pub pool: MySqlPool, }

Fields

pool: MySqlPool

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

-

ping DB

-

register a new user

-

delete a user

-

check if username exists

-

get user email

-

check if email exists

-

update a user’s email

-

get a user’s password

-

update user’s password

-

update username

-

get a user’s secret

-

get a user’s secret from a captcha key

-

update a user’s secret

-

create new captcha

-

Get captcha config

-

Get all captchas belonging to user

-

update captcha metadata; doesn’t change captcha key

-

update captcha key; doesn’t change metadata

-

Add levels to captcha

-

check if captcha exists

-

Delete all levels of a captcha

-

Delete captcha

-

Get captcha levels

-

Get captcha’s cooldown period

-

Add traffic configuration

-

Get traffic configuration

-

Delete traffic configuration

-

create new notification

-

get all unread notifications

-

mark a notification read

-

record PoWConfig fetches

-

record PoWConfig solves

-

record PoWConfig confirms

-

fetch PoWConfig fetches

-

fetch PoWConfig solves

-

fetch PoWConfig confirms

-

database specific error-type +

ping DB

+

register a new user

+

delete a user

+

check if username exists

+

get user email

+

check if email exists

+

update a user’s email

+

get a user’s password

+

update user’s password

+

update username

+

get a user’s secret

+

get a user’s secret from a captcha key

+

update a user’s secret

+

create new captcha

+

Get captcha config

+

Get all captchas belonging to user

+

update captcha metadata; doesn’t change captcha key

+

update captcha key; doesn’t change metadata

+

Add levels to captcha

+

check if captcha exists

+

Delete all levels of a captcha

+

Delete captcha

+

Get captcha levels

+

Get captcha’s cooldown period

+

Add traffic configuration

+

Get traffic configuration

+

Delete traffic configuration

+

create new notification

+

get all unread notifications

+

mark a notification read

+

record PoWConfig fetches

+

record PoWConfig solves

+

record PoWConfig confirms

+

fetch PoWConfig fetches

+

fetch PoWConfig solves

+

fetch PoWConfig confirms

+

database specific error-type run migrations Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

diff --git a/db_sqlx_maria/struct.InnerNotification.html b/db_sqlx_maria/struct.InnerNotification.html index 4b76a20b..628c66d4 100644 --- a/db_sqlx_maria/struct.InnerNotification.html +++ b/db_sqlx_maria/struct.InnerNotification.html @@ -1,4 +1,4 @@ -InnerNotification in db_sqlx_maria - Rust
pub struct InnerNotification {
+InnerNotification in db_sqlx_maria - Rust
pub struct InnerNotification {
     pub name: String,
     pub heading: String,
     pub message: String,
@@ -10,14 +10,14 @@
 
message: String

message of the notification

received: OffsetDateTime

when notification was received

id: i32

db assigned ID of the notification

-

Trait Implementations

Returns a copy of the value. Read more

+

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

-

Converts to this type from the input type.

-

This method tests for self and other values to be equal, and is used +

Formats the value using the given formatter. Read more

+

Converts to this type from the input type.

+

This method tests for self and other values to be equal, and is used by ==. Read more

-

This method tests for !=.

-

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

+

This method tests for !=.

+

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Returns the argument unchanged.

diff --git a/db_sqlx_postgres/dev/dev/ops/trait.Connect.html b/db_sqlx_postgres/dev/dev/ops/trait.Connect.html index 93dafd3e..f771f72f 100644 --- a/db_sqlx_postgres/dev/dev/ops/trait.Connect.html +++ b/db_sqlx_postgres/dev/dev/ops/trait.Connect.html @@ -6,4 +6,4 @@

Required Associated Types

database specific pool-type

Required Methods

database specific error-type create connection pool

-

Implementors

\ No newline at end of file +

Implementors

\ No newline at end of file diff --git a/db_sqlx_postgres/dev/dev/ops/trait.Migrate.html b/db_sqlx_postgres/dev/dev/ops/trait.Migrate.html index 671756ea..5c508960 100644 --- a/db_sqlx_postgres/dev/dev/ops/trait.Migrate.html +++ b/db_sqlx_postgres/dev/dev/ops/trait.Migrate.html @@ -3,4 +3,4 @@ }
Expand description

database migrations

Required Methods

database specific error-type run migrations

-

Implementors

\ No newline at end of file +

Implementors

\ No newline at end of file diff --git a/db_sqlx_postgres/dev/dev/prelude/struct.Notification.html b/db_sqlx_postgres/dev/dev/prelude/struct.Notification.html index fce7d41f..7d9c7cf8 100644 --- a/db_sqlx_postgres/dev/dev/prelude/struct.Notification.html +++ b/db_sqlx_postgres/dev/dev/prelude/struct.Notification.html @@ -15,7 +15,7 @@

Formats the value using the given formatter. Read more

Returns the “default value” for a type. Read more

Deserialize this value from the given Serde deserializer. Read more

-

Converts to this type from the input type.

+

Converts to this type from the input type.

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

diff --git a/db_sqlx_postgres/dev/dev/prelude/trait.Connect.html b/db_sqlx_postgres/dev/dev/prelude/trait.Connect.html index b2766111..ecb010cb 100644 --- a/db_sqlx_postgres/dev/dev/prelude/trait.Connect.html +++ b/db_sqlx_postgres/dev/dev/prelude/trait.Connect.html @@ -6,4 +6,4 @@

Required Associated Types

database specific pool-type

Required Methods

database specific error-type create connection pool

-

Implementors

\ No newline at end of file +

Implementors

\ No newline at end of file diff --git a/db_sqlx_postgres/dev/dev/prelude/trait.MCDatabase.html b/db_sqlx_postgres/dev/dev/prelude/trait.MCDatabase.html index 94a91791..c9a81944 100644 --- a/db_sqlx_postgres/dev/dev/prelude/trait.MCDatabase.html +++ b/db_sqlx_postgres/dev/dev/prelude/trait.MCDatabase.html @@ -73,4 +73,4 @@ trait.

fetch PoWConfig fetches

fetch PoWConfig solves

fetch PoWConfig confirms

-

Implementors

\ No newline at end of file +

Implementors

\ No newline at end of file diff --git a/db_sqlx_postgres/dev/dev/prelude/trait.Migrate.html b/db_sqlx_postgres/dev/dev/prelude/trait.Migrate.html index 6d736438..f168a98a 100644 --- a/db_sqlx_postgres/dev/dev/prelude/trait.Migrate.html +++ b/db_sqlx_postgres/dev/dev/prelude/trait.Migrate.html @@ -3,4 +3,4 @@ }
Expand description

database migrations

Required Methods

database specific error-type run migrations

-

Implementors

\ No newline at end of file +

Implementors

\ No newline at end of file diff --git a/db_sqlx_postgres/dev/dev/struct.Notification.html b/db_sqlx_postgres/dev/dev/struct.Notification.html index 2e7df793..1f973307 100644 --- a/db_sqlx_postgres/dev/dev/struct.Notification.html +++ b/db_sqlx_postgres/dev/dev/struct.Notification.html @@ -15,7 +15,7 @@

Formats the value using the given formatter. Read more

Returns the “default value” for a type. Read more

Deserialize this value from the given Serde deserializer. Read more

-

Converts to this type from the input type.

+

Converts to this type from the input type.

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

diff --git a/db_sqlx_postgres/dev/dev/trait.Connect.html b/db_sqlx_postgres/dev/dev/trait.Connect.html index a3cadf2b..6b937c5f 100644 --- a/db_sqlx_postgres/dev/dev/trait.Connect.html +++ b/db_sqlx_postgres/dev/dev/trait.Connect.html @@ -6,4 +6,4 @@

Required Associated Types

database specific pool-type

Required Methods

database specific error-type create connection pool

-

Implementors

\ No newline at end of file +

Implementors

\ No newline at end of file diff --git a/db_sqlx_postgres/dev/dev/trait.MCDatabase.html b/db_sqlx_postgres/dev/dev/trait.MCDatabase.html index 5cc45e73..f6fa86da 100644 --- a/db_sqlx_postgres/dev/dev/trait.MCDatabase.html +++ b/db_sqlx_postgres/dev/dev/trait.MCDatabase.html @@ -73,4 +73,4 @@ trait.

fetch PoWConfig fetches

fetch PoWConfig solves

fetch PoWConfig confirms

-

Implementors

\ No newline at end of file +

Implementors

\ No newline at end of file diff --git a/db_sqlx_postgres/dev/dev/trait.Migrate.html b/db_sqlx_postgres/dev/dev/trait.Migrate.html index b3d4d8a3..ef4495ab 100644 --- a/db_sqlx_postgres/dev/dev/trait.Migrate.html +++ b/db_sqlx_postgres/dev/dev/trait.Migrate.html @@ -3,4 +3,4 @@ }
Expand description

database migrations

Required Methods

database specific error-type run migrations

-

Implementors

\ No newline at end of file +

Implementors

\ No newline at end of file diff --git a/db_sqlx_postgres/dev/ops/trait.Connect.html b/db_sqlx_postgres/dev/ops/trait.Connect.html index a0091edb..891fca1f 100644 --- a/db_sqlx_postgres/dev/ops/trait.Connect.html +++ b/db_sqlx_postgres/dev/ops/trait.Connect.html @@ -6,4 +6,4 @@

Required Associated Types

database specific pool-type

Required Methods

database specific error-type create connection pool

-

Implementors

\ No newline at end of file +

Implementors

\ No newline at end of file diff --git a/db_sqlx_postgres/dev/ops/trait.Migrate.html b/db_sqlx_postgres/dev/ops/trait.Migrate.html index d1cea066..a9087f23 100644 --- a/db_sqlx_postgres/dev/ops/trait.Migrate.html +++ b/db_sqlx_postgres/dev/ops/trait.Migrate.html @@ -3,4 +3,4 @@ }
Expand description

database migrations

Required Methods

database specific error-type run migrations

-

Implementors

\ No newline at end of file +

Implementors

\ No newline at end of file diff --git a/db_sqlx_postgres/dev/prelude/dev/struct.Notification.html b/db_sqlx_postgres/dev/prelude/dev/struct.Notification.html index 9296e06a..16af8ba3 100644 --- a/db_sqlx_postgres/dev/prelude/dev/struct.Notification.html +++ b/db_sqlx_postgres/dev/prelude/dev/struct.Notification.html @@ -15,7 +15,7 @@

Formats the value using the given formatter. Read more

Returns the “default value” for a type. Read more

Deserialize this value from the given Serde deserializer. Read more

-

Converts to this type from the input type.

+

Converts to this type from the input type.

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

diff --git a/db_sqlx_postgres/dev/prelude/dev/trait.Connect.html b/db_sqlx_postgres/dev/prelude/dev/trait.Connect.html index 9253c293..3267612b 100644 --- a/db_sqlx_postgres/dev/prelude/dev/trait.Connect.html +++ b/db_sqlx_postgres/dev/prelude/dev/trait.Connect.html @@ -6,4 +6,4 @@

Required Associated Types

database specific pool-type

Required Methods

database specific error-type create connection pool

-

Implementors

\ No newline at end of file +

Implementors

\ No newline at end of file diff --git a/db_sqlx_postgres/dev/prelude/dev/trait.MCDatabase.html b/db_sqlx_postgres/dev/prelude/dev/trait.MCDatabase.html index c30e4911..d7e2cf20 100644 --- a/db_sqlx_postgres/dev/prelude/dev/trait.MCDatabase.html +++ b/db_sqlx_postgres/dev/prelude/dev/trait.MCDatabase.html @@ -73,4 +73,4 @@ trait.

fetch PoWConfig fetches

fetch PoWConfig solves

fetch PoWConfig confirms

-

Implementors

\ No newline at end of file +

Implementors

\ No newline at end of file diff --git a/db_sqlx_postgres/dev/prelude/dev/trait.Migrate.html b/db_sqlx_postgres/dev/prelude/dev/trait.Migrate.html index 67e738cb..e5d04ec5 100644 --- a/db_sqlx_postgres/dev/prelude/dev/trait.Migrate.html +++ b/db_sqlx_postgres/dev/prelude/dev/trait.Migrate.html @@ -3,4 +3,4 @@ }
Expand description

database migrations

Required Methods

database specific error-type run migrations

-

Implementors

\ No newline at end of file +

Implementors

\ No newline at end of file diff --git a/db_sqlx_postgres/dev/prelude/struct.Notification.html b/db_sqlx_postgres/dev/prelude/struct.Notification.html index 7cc62f07..a2597107 100644 --- a/db_sqlx_postgres/dev/prelude/struct.Notification.html +++ b/db_sqlx_postgres/dev/prelude/struct.Notification.html @@ -15,7 +15,7 @@

Formats the value using the given formatter. Read more

Returns the “default value” for a type. Read more

Deserialize this value from the given Serde deserializer. Read more

-

Converts to this type from the input type.

+

Converts to this type from the input type.

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

diff --git a/db_sqlx_postgres/dev/prelude/trait.Connect.html b/db_sqlx_postgres/dev/prelude/trait.Connect.html index eac7fa6e..42e11042 100644 --- a/db_sqlx_postgres/dev/prelude/trait.Connect.html +++ b/db_sqlx_postgres/dev/prelude/trait.Connect.html @@ -6,4 +6,4 @@

Required Associated Types

database specific pool-type

Required Methods

database specific error-type create connection pool

-

Implementors

\ No newline at end of file +

Implementors

\ No newline at end of file diff --git a/db_sqlx_postgres/dev/prelude/trait.MCDatabase.html b/db_sqlx_postgres/dev/prelude/trait.MCDatabase.html index 73185d93..7691816e 100644 --- a/db_sqlx_postgres/dev/prelude/trait.MCDatabase.html +++ b/db_sqlx_postgres/dev/prelude/trait.MCDatabase.html @@ -73,4 +73,4 @@ trait.

fetch PoWConfig fetches

fetch PoWConfig solves

fetch PoWConfig confirms

-

Implementors

\ No newline at end of file +

Implementors

\ No newline at end of file diff --git a/db_sqlx_postgres/dev/prelude/trait.Migrate.html b/db_sqlx_postgres/dev/prelude/trait.Migrate.html index 4f75a30a..e861bf68 100644 --- a/db_sqlx_postgres/dev/prelude/trait.Migrate.html +++ b/db_sqlx_postgres/dev/prelude/trait.Migrate.html @@ -3,4 +3,4 @@ }
Expand description

database migrations

Required Methods

database specific error-type run migrations

-

Implementors

\ No newline at end of file +

Implementors

\ No newline at end of file diff --git a/db_sqlx_postgres/dev/struct.Notification.html b/db_sqlx_postgres/dev/struct.Notification.html index c41ed2e3..4ed9f223 100644 --- a/db_sqlx_postgres/dev/struct.Notification.html +++ b/db_sqlx_postgres/dev/struct.Notification.html @@ -15,7 +15,7 @@

Formats the value using the given formatter. Read more

Returns the “default value” for a type. Read more

Deserialize this value from the given Serde deserializer. Read more

-

Converts to this type from the input type.

+

Converts to this type from the input type.

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

diff --git a/db_sqlx_postgres/dev/trait.Connect.html b/db_sqlx_postgres/dev/trait.Connect.html index 7705e5fe..d48a2fb1 100644 --- a/db_sqlx_postgres/dev/trait.Connect.html +++ b/db_sqlx_postgres/dev/trait.Connect.html @@ -6,4 +6,4 @@

Required Associated Types

database specific pool-type

Required Methods

database specific error-type create connection pool

-

Implementors

\ No newline at end of file +

Implementors

\ No newline at end of file diff --git a/db_sqlx_postgres/dev/trait.MCDatabase.html b/db_sqlx_postgres/dev/trait.MCDatabase.html index 548ed724..fbb79062 100644 --- a/db_sqlx_postgres/dev/trait.MCDatabase.html +++ b/db_sqlx_postgres/dev/trait.MCDatabase.html @@ -73,4 +73,4 @@ trait.

fetch PoWConfig fetches

fetch PoWConfig solves

fetch PoWConfig confirms

-

Implementors

\ No newline at end of file +

Implementors

\ No newline at end of file diff --git a/db_sqlx_postgres/dev/trait.Migrate.html b/db_sqlx_postgres/dev/trait.Migrate.html index aec21f1a..9254ae0d 100644 --- a/db_sqlx_postgres/dev/trait.Migrate.html +++ b/db_sqlx_postgres/dev/trait.Migrate.html @@ -3,4 +3,4 @@ }
Expand description

database migrations

Required Methods

database specific error-type run migrations

-

Implementors

\ No newline at end of file +

Implementors

\ No newline at end of file diff --git a/db_sqlx_postgres/enum.ConnectionOptions.html b/db_sqlx_postgres/enum.ConnectionOptions.html index ea90cc4d..38ddaf8a 100644 --- a/db_sqlx_postgres/enum.ConnectionOptions.html +++ b/db_sqlx_postgres/enum.ConnectionOptions.html @@ -4,8 +4,8 @@ }
Expand description

Connect to database

Variants

Fresh(Fresh)

fresh connection

Existing(Conn)

existing connection

-

Trait Implementations

database specific pool-type

-

database specific error-type +

Trait Implementations

database specific pool-type

+

database specific error-type create connection pool Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

diff --git a/db_sqlx_postgres/index.html b/db_sqlx_postgres/index.html index fde779ba..af4a7bf5 100644 --- a/db_sqlx_postgres/index.html +++ b/db_sqlx_postgres/index.html @@ -1,4 +1,4 @@ -db_sqlx_postgres - Rust

Modules

Error-handling utilities

+db_sqlx_postgres - Rust

Modules

Error-handling utilities

Structs

Use an existing database pool

Represents notification

Enums

Connect to database

diff --git a/db_sqlx_postgres/prelude/dev/prelude/struct.Notification.html b/db_sqlx_postgres/prelude/dev/prelude/struct.Notification.html index 05b27b64..97f628ed 100644 --- a/db_sqlx_postgres/prelude/dev/prelude/struct.Notification.html +++ b/db_sqlx_postgres/prelude/dev/prelude/struct.Notification.html @@ -15,7 +15,7 @@

Formats the value using the given formatter. Read more

Returns the “default value” for a type. Read more

Deserialize this value from the given Serde deserializer. Read more

-

Converts to this type from the input type.

+

Converts to this type from the input type.

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

diff --git a/db_sqlx_postgres/prelude/dev/prelude/trait.Connect.html b/db_sqlx_postgres/prelude/dev/prelude/trait.Connect.html index 97a1ac7b..e82b33fa 100644 --- a/db_sqlx_postgres/prelude/dev/prelude/trait.Connect.html +++ b/db_sqlx_postgres/prelude/dev/prelude/trait.Connect.html @@ -6,4 +6,4 @@

Required Associated Types

database specific pool-type

Required Methods

database specific error-type create connection pool

-

Implementors

\ No newline at end of file +

Implementors

\ No newline at end of file diff --git a/db_sqlx_postgres/prelude/dev/prelude/trait.MCDatabase.html b/db_sqlx_postgres/prelude/dev/prelude/trait.MCDatabase.html index 3c86b2ec..489f89da 100644 --- a/db_sqlx_postgres/prelude/dev/prelude/trait.MCDatabase.html +++ b/db_sqlx_postgres/prelude/dev/prelude/trait.MCDatabase.html @@ -73,4 +73,4 @@ trait.

fetch PoWConfig fetches

fetch PoWConfig solves

fetch PoWConfig confirms

-

Implementors

\ No newline at end of file +

Implementors

\ No newline at end of file diff --git a/db_sqlx_postgres/prelude/dev/prelude/trait.Migrate.html b/db_sqlx_postgres/prelude/dev/prelude/trait.Migrate.html index 9ddd2346..0e0e7467 100644 --- a/db_sqlx_postgres/prelude/dev/prelude/trait.Migrate.html +++ b/db_sqlx_postgres/prelude/dev/prelude/trait.Migrate.html @@ -3,4 +3,4 @@ }
Expand description

database migrations

Required Methods

database specific error-type run migrations

-

Implementors

\ No newline at end of file +

Implementors

\ No newline at end of file diff --git a/db_sqlx_postgres/prelude/dev/struct.Notification.html b/db_sqlx_postgres/prelude/dev/struct.Notification.html index 34302e65..bc9eb1bb 100644 --- a/db_sqlx_postgres/prelude/dev/struct.Notification.html +++ b/db_sqlx_postgres/prelude/dev/struct.Notification.html @@ -15,7 +15,7 @@

Formats the value using the given formatter. Read more

Returns the “default value” for a type. Read more

Deserialize this value from the given Serde deserializer. Read more

-

Converts to this type from the input type.

+

Converts to this type from the input type.

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

diff --git a/db_sqlx_postgres/prelude/dev/trait.Connect.html b/db_sqlx_postgres/prelude/dev/trait.Connect.html index 7ca158a0..6d8fd591 100644 --- a/db_sqlx_postgres/prelude/dev/trait.Connect.html +++ b/db_sqlx_postgres/prelude/dev/trait.Connect.html @@ -6,4 +6,4 @@

Required Associated Types

database specific pool-type

Required Methods

database specific error-type create connection pool

-

Implementors

\ No newline at end of file +

Implementors

\ No newline at end of file diff --git a/db_sqlx_postgres/prelude/dev/trait.MCDatabase.html b/db_sqlx_postgres/prelude/dev/trait.MCDatabase.html index 715fa0e8..f0196c6f 100644 --- a/db_sqlx_postgres/prelude/dev/trait.MCDatabase.html +++ b/db_sqlx_postgres/prelude/dev/trait.MCDatabase.html @@ -73,4 +73,4 @@ trait.

fetch PoWConfig fetches

fetch PoWConfig solves

fetch PoWConfig confirms

-

Implementors

\ No newline at end of file +

Implementors

\ No newline at end of file diff --git a/db_sqlx_postgres/prelude/dev/trait.Migrate.html b/db_sqlx_postgres/prelude/dev/trait.Migrate.html index 9645d9a4..51203ae0 100644 --- a/db_sqlx_postgres/prelude/dev/trait.Migrate.html +++ b/db_sqlx_postgres/prelude/dev/trait.Migrate.html @@ -3,4 +3,4 @@ }
Expand description

database migrations

Required Methods

database specific error-type run migrations

-

Implementors

\ No newline at end of file +

Implementors

\ No newline at end of file diff --git a/db_sqlx_postgres/prelude/ops/trait.Connect.html b/db_sqlx_postgres/prelude/ops/trait.Connect.html index 1d397486..f996132f 100644 --- a/db_sqlx_postgres/prelude/ops/trait.Connect.html +++ b/db_sqlx_postgres/prelude/ops/trait.Connect.html @@ -6,4 +6,4 @@

Required Associated Types

database specific pool-type

Required Methods

database specific error-type create connection pool

-

Implementors

\ No newline at end of file +

Implementors

\ No newline at end of file diff --git a/db_sqlx_postgres/prelude/ops/trait.Migrate.html b/db_sqlx_postgres/prelude/ops/trait.Migrate.html index 8a85c14c..ecec70a7 100644 --- a/db_sqlx_postgres/prelude/ops/trait.Migrate.html +++ b/db_sqlx_postgres/prelude/ops/trait.Migrate.html @@ -3,4 +3,4 @@ }
Expand description

database migrations

Required Methods

database specific error-type run migrations

-

Implementors

\ No newline at end of file +

Implementors

\ No newline at end of file diff --git a/db_sqlx_postgres/prelude/struct.Notification.html b/db_sqlx_postgres/prelude/struct.Notification.html index 307a5bc8..f0b79ab3 100644 --- a/db_sqlx_postgres/prelude/struct.Notification.html +++ b/db_sqlx_postgres/prelude/struct.Notification.html @@ -15,7 +15,7 @@

Formats the value using the given formatter. Read more

Returns the “default value” for a type. Read more

Deserialize this value from the given Serde deserializer. Read more

-

Converts to this type from the input type.

+

Converts to this type from the input type.

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

diff --git a/db_sqlx_postgres/prelude/trait.Connect.html b/db_sqlx_postgres/prelude/trait.Connect.html index ff0b5eee..fe10a8e4 100644 --- a/db_sqlx_postgres/prelude/trait.Connect.html +++ b/db_sqlx_postgres/prelude/trait.Connect.html @@ -6,4 +6,4 @@

Required Associated Types

database specific pool-type

Required Methods

database specific error-type create connection pool

-

Implementors

\ No newline at end of file +

Implementors

\ No newline at end of file diff --git a/db_sqlx_postgres/prelude/trait.MCDatabase.html b/db_sqlx_postgres/prelude/trait.MCDatabase.html index a7f934c9..01560cf5 100644 --- a/db_sqlx_postgres/prelude/trait.MCDatabase.html +++ b/db_sqlx_postgres/prelude/trait.MCDatabase.html @@ -73,4 +73,4 @@ trait.

fetch PoWConfig fetches

fetch PoWConfig solves

fetch PoWConfig confirms

-

Implementors

\ No newline at end of file +

Implementors

\ No newline at end of file diff --git a/db_sqlx_postgres/prelude/trait.Migrate.html b/db_sqlx_postgres/prelude/trait.Migrate.html index 3ae76181..4006087a 100644 --- a/db_sqlx_postgres/prelude/trait.Migrate.html +++ b/db_sqlx_postgres/prelude/trait.Migrate.html @@ -3,4 +3,4 @@ }
Expand description

database migrations

Required Methods

database specific error-type run migrations

-

Implementors

\ No newline at end of file +

Implementors

\ No newline at end of file diff --git a/db_sqlx_postgres/struct.Database.html b/db_sqlx_postgres/struct.Database.html index 1d961e74..78051e45 100644 --- a/db_sqlx_postgres/struct.Database.html +++ b/db_sqlx_postgres/struct.Database.html @@ -2,43 +2,43 @@ pub pool: PgPool, }

Fields

pool: PgPool

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

-

ping DB

-

register a new user

-

delete a user

-

check if username exists

-

get user email

-

check if email exists

-

update a user’s email

-

get a user’s password

-

update user’s password

-

update username

-

get a user’s secret

-

get a user’s secret from a captcha key

-

update a user’s secret

-

create new captcha

-

Get captcha config

-

Get all captchas belonging to user

-

update captcha metadata; doesn’t change captcha key

-

update captcha key; doesn’t change metadata

-

Add levels to captcha

-

check if captcha exists

-

Delete all levels of a captcha

-

Delete captcha

-

Get captcha levels

-

Get captcha’s cooldown period

-

Add traffic configuration

-

Get traffic configuration

-

Delete traffic configuration

-

create new notification

-

get all unread notifications

-

mark a notification read

-

record PoWConfig fetches

-

record PoWConfig solves

-

record PoWConfig confirms

-

fetch PoWConfig fetches

-

fetch PoWConfig solves

-

fetch PoWConfig confirms

-

database specific error-type +

ping DB

+

register a new user

+

delete a user

+

check if username exists

+

get user email

+

check if email exists

+

update a user’s email

+

get a user’s password

+

update user’s password

+

update username

+

get a user’s secret

+

get a user’s secret from a captcha key

+

update a user’s secret

+

create new captcha

+

Get captcha config

+

Get all captchas belonging to user

+

update captcha metadata; doesn’t change captcha key

+

update captcha key; doesn’t change metadata

+

Add levels to captcha

+

check if captcha exists

+

Delete all levels of a captcha

+

Delete captcha

+

Get captcha levels

+

Get captcha’s cooldown period

+

Add traffic configuration

+

Get traffic configuration

+

Delete traffic configuration

+

create new notification

+

get all unread notifications

+

mark a notification read

+

record PoWConfig fetches

+

record PoWConfig solves

+

record PoWConfig confirms

+

fetch PoWConfig fetches

+

fetch PoWConfig solves

+

fetch PoWConfig confirms

+

database specific error-type run migrations Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

diff --git a/db_sqlx_postgres/struct.InnerNotification.html b/db_sqlx_postgres/struct.InnerNotification.html index 49d22d58..e40aa856 100644 --- a/db_sqlx_postgres/struct.InnerNotification.html +++ b/db_sqlx_postgres/struct.InnerNotification.html @@ -1,4 +1,4 @@ -InnerNotification in db_sqlx_postgres - Rust
pub struct InnerNotification {
+InnerNotification in db_sqlx_postgres - Rust
pub struct InnerNotification {
     pub name: Option<String>,
     pub heading: Option<String>,
     pub message: Option<String>,
@@ -10,15 +10,15 @@
 
message: Option<String>

message of the notification

received: Option<OffsetDateTime>

when notification was received

id: Option<i32>

db assigned ID of the notification

-

Trait Implementations

Returns a copy of the value. Read more

+

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

-

Returns the “default value” for a type. Read more

-

Converts to this type from the input type.

-

This method tests for self and other values to be equal, and is used +

Formats the value using the given formatter. Read more

+

Returns the “default value” for a type. Read more

+

Converts to this type from the input type.

+

This method tests for self and other values to be equal, and is used by ==. Read more

-

This method tests for !=.

-

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

+

This method tests for !=.

+

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Returns the argument unchanged.

diff --git a/mcaptcha/settings/fn.check_url.html b/mcaptcha/settings/fn.check_url.html index d4adb8d6..4a9a5719 100644 --- a/mcaptcha/settings/fn.check_url.html +++ b/mcaptcha/settings/fn.check_url.html @@ -1 +1 @@ -check_url in mcaptcha::settings - Rust
fn check_url(s: &Config)
\ No newline at end of file +check_url in mcaptcha::settings - Rust
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 f8609b30..2bd75815 100644 --- a/mcaptcha/settings/fn.set_database_url.html +++ b/mcaptcha/settings/fn.set_database_url.html @@ -1 +1 @@ -set_database_url in mcaptcha::settings - Rust
fn set_database_url(s: &mut Config)
\ No newline at end of file +set_database_url in mcaptcha::settings - Rust
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 07f06fb2..ef827a22 100644 --- a/mcaptcha/settings/index.html +++ b/mcaptcha/settings/index.html @@ -1 +1 @@ -mcaptcha::settings - Rust
\ No newline at end of file +mcaptcha::settings - Rust
\ No newline at end of file diff --git a/mcaptcha/settings/struct.Settings.html b/mcaptcha/settings/struct.Settings.html index be8d4ac9..5eb5c4a0 100644 --- a/mcaptcha/settings/struct.Settings.html +++ b/mcaptcha/settings/struct.Settings.html @@ -9,7 +9,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 1b30e543..60295985 100644 --- a/mcaptcha/struct.Settings.html +++ b/mcaptcha/struct.Settings.html @@ -9,7 +9,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/db_sqlx_maria/lib.rs.html b/src/db_sqlx_maria/lib.rs.html index 9df33052..158e28cf 100644 --- a/src/db_sqlx_maria/lib.rs.html +++ b/src/db_sqlx_maria/lib.rs.html @@ -960,9 +960,6 @@ 960 961 962 -963 -964 -965
/*
  * Copyright (C) 2022  Aravinth Manivannan <realaravinth@batsense.net>
  *
@@ -1038,9 +1035,6 @@
                 if fresh.disable_logging {
                     connect_options.disable_statement_logging();
                 }
-                sqlx::mysql::MySqlConnectOptions::from_str(&fresh.url)
-                    .unwrap()
-                    .disable_statement_logging();
                 fresh
                     .pool_options
                     .connect_with(connect_options)
diff --git a/src/db_sqlx_postgres/lib.rs.html b/src/db_sqlx_postgres/lib.rs.html
index 6d9e2d08..4d851af0 100644
--- a/src/db_sqlx_postgres/lib.rs.html
+++ b/src/db_sqlx_postgres/lib.rs.html
@@ -966,9 +966,6 @@
 966
 967
 968
-969
-970
-971
 
/*
  * Copyright (C) 2022  Aravinth Manivannan <realaravinth@batsense.net>
  *
@@ -1044,9 +1041,6 @@
                 if fresh.disable_logging {
                     connect_options.disable_statement_logging();
                 }
-                sqlx::postgres::PgConnectOptions::from_str(&fresh.url)
-                    .unwrap()
-                    .disable_statement_logging();
                 fresh
                     .pool_options
                     .connect_with(connect_options)
diff --git a/src/mcaptcha/settings.rs.html b/src/mcaptcha/settings.rs.html
index eb680ab3..02a01324 100644
--- a/src/mcaptcha/settings.rs.html
+++ b/src/mcaptcha/settings.rs.html
@@ -251,6 +251,19 @@
 251
 252
 253
+254
+255
+256
+257
+258
+259
+260
+261
+262
+263
+264
+265
+266
 
/*
  * Copyright (C) 2022  Aravinth Manivannan <realaravinth@batsense.net>
  *
@@ -267,8 +280,8 @@
  * You should have received a copy of the GNU Affero General Public License
  * along with this program.  If not, see <https://www.gnu.org/licenses/>.
  */
-use std::env;
 use std::path::Path;
+use std::{env, fs};
 
 use config::{Config, ConfigError, Environment, File};
 use derive_more::Display;
@@ -405,25 +418,34 @@
             .expect("unable to set capatcha.enable_stats default config");
 
         if let Ok(path) = env::var("MCAPTCHA_CONFIG") {
-            s.merge(File::with_name(&path))?;
+            let absolute_path = Path::new(&path).canonicalize().unwrap();
+            log::info!(
+                "Loading config file from {}",
+                absolute_path.to_str().unwrap()
+            );
+            s.merge(File::with_name(absolute_path.to_str().unwrap()))?;
         } else if Path::new(CURRENT_DIR).exists() {
+            let absolute_path = fs::canonicalize(CURRENT_DIR).unwrap();
+            log::info!(
+                "Loading config file from {}",
+                absolute_path.to_str().unwrap()
+            );
             // merging default config from file
-            s.merge(File::with_name(CURRENT_DIR))?;
+            s.merge(File::with_name(absolute_path.to_str().unwrap()))?;
         } else if Path::new(ETC).exists() {
+            log::info!("{}", format!("Loading config file from {}", ETC));
             s.merge(File::with_name(ETC))?;
         } else {
-            log::warn!("configuration file not found");
+            log::warn!("Configuration file not found");
         }
 
         s.merge(Environment::with_prefix("MCAPTCHA").separator("_"))?;
 
         check_url(&s);
 
-        match env::var("PORT") {
-            Ok(val) => {
-                s.set("server.port", val).unwrap();
-            }
-            Err(e) => warn!("couldn't interpret PORT: {}", e),
+        if let Ok(val) = env::var("PORT") {
+            s.set("server.port", val).unwrap();
+            log::info!("Overriding [server].port with environment variable");
         }
 
         match env::var("DATABASE_URL") {
@@ -433,6 +455,7 @@
                 let database_type = DBType::from_url(&url).unwrap();
                 s.set("database.database_type", database_type.to_string())
                     .unwrap();
+                log::info!("Overriding [database].url and [database].database_type with environment variable");
             }
             Err(e) => {
                 set_database_url(&mut s);
@@ -468,8 +491,11 @@
             r"postgres://{}:{}@{}:{}/{}",
             s.get::<String>("database.username")
                 .expect("Couldn't access database username"),
-            s.get::<String>("database.password")
-                .expect("Couldn't access database password"),
+            urlencoding::encode(
+                s.get::<String>("database.password")
+                    .expect("Couldn't access database password")
+                    .as_str()
+            ),
             s.get::<String>("database.hostname")
                 .expect("Couldn't access database hostname"),
             s.get::<String>("database.port")