From c921ab750386cd9b367d1c0ed492fe73b68c396f Mon Sep 17 00:00:00 2001 From: realaravinth Date: Wed, 8 Jun 2022 09:29:52 +0000 Subject: [PATCH] =?UTF-8?q?Deploying=20to=20gh-pages=20from=20=20@=205daef?= =?UTF-8?q?fd6fbd421b0bffa4111f62ae3ac8f663bff=20=F0=9F=9A=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- db_sqlx_postgres/dev/dev/enum.DBError.html | 8 +-- db_sqlx_postgres/dev/dev/enum.Login.html | 16 ++--- db_sqlx_postgres/dev/dev/index.html | 2 +- .../dev/dev/prelude/enum.DBError.html | 8 +-- .../dev/dev/prelude/enum.Login.html | 16 ++--- db_sqlx_postgres/dev/dev/prelude/index.html | 2 +- .../dev/prelude/struct.AddNotification.html | 18 ++--- .../dev/dev/prelude/struct.Captcha.html | 18 ++--- .../dev/dev/prelude/struct.CreateCaptcha.html | 18 ++--- .../dev/dev/prelude/struct.NameHash.html | 16 ++--- .../dev/dev/prelude/struct.Notification.html | 18 ++--- .../dev/dev/prelude/struct.Register.html | 16 ++--- .../dev/dev/prelude/struct.Secret.html | 18 ++--- .../prelude/struct.StatsUnixTimestamp.html | 18 ++--- .../dev/prelude/struct.TrafficPattern.html | 18 ++--- .../dev/dev/prelude/struct.UpdateEmail.html | 16 ++--- .../dev/prelude/trait.CloneSPDatabase.html | 6 +- .../dev/dev/prelude/trait.Connect.html | 6 +- .../dev/dev/prelude/trait.DBOps.html | 2 +- .../dev/dev/prelude/trait.GetConnection.html | 6 +- .../dev/dev/prelude/trait.MCDatabase.html | 72 +++++++++---------- .../dev/dev/prelude/trait.Migrate.html | 4 +- .../dev/dev/prelude/type.BoxDynError.html | 2 +- .../dev/dev/prelude/type.DBResult.html | 2 +- .../dev/dev/struct.AddNotification.html | 18 ++--- db_sqlx_postgres/dev/dev/struct.Captcha.html | 18 ++--- .../dev/dev/struct.CreateCaptcha.html | 18 ++--- db_sqlx_postgres/dev/dev/struct.NameHash.html | 16 ++--- .../dev/dev/struct.Notification.html | 18 ++--- db_sqlx_postgres/dev/dev/struct.Register.html | 16 ++--- db_sqlx_postgres/dev/dev/struct.Secret.html | 18 ++--- .../dev/dev/struct.StatsUnixTimestamp.html | 18 ++--- .../dev/dev/struct.TrafficPattern.html | 18 ++--- .../dev/dev/struct.UpdateEmail.html | 16 ++--- .../dev/dev/trait.CloneSPDatabase.html | 6 +- db_sqlx_postgres/dev/dev/trait.Connect.html | 6 +- db_sqlx_postgres/dev/dev/trait.DBOps.html | 2 +- .../dev/dev/trait.GetConnection.html | 6 +- .../dev/dev/trait.MCDatabase.html | 72 +++++++++---------- db_sqlx_postgres/dev/dev/trait.Migrate.html | 4 +- .../dev/dev/type.BoxDynError.html | 2 +- db_sqlx_postgres/dev/dev/type.DBResult.html | 2 +- db_sqlx_postgres/dev/enum.DBError.html | 8 +-- db_sqlx_postgres/dev/enum.Login.html | 16 ++--- db_sqlx_postgres/dev/errors/enum.DBError.html | 8 +-- db_sqlx_postgres/dev/errors/index.html | 2 +- .../dev/errors/type.BoxDynError.html | 2 +- .../dev/errors/type.DBResult.html | 2 +- db_sqlx_postgres/dev/ops/index.html | 2 +- db_sqlx_postgres/dev/ops/trait.Connect.html | 6 +- db_sqlx_postgres/dev/ops/trait.DBOps.html | 2 +- .../dev/ops/trait.GetConnection.html | 6 +- db_sqlx_postgres/dev/ops/trait.Migrate.html | 4 +- .../dev/prelude/dev/enum.DBError.html | 8 +-- .../dev/prelude/dev/enum.Login.html | 16 ++--- db_sqlx_postgres/dev/prelude/dev/index.html | 2 +- .../prelude/dev/struct.AddNotification.html | 18 ++--- .../dev/prelude/dev/struct.Captcha.html | 18 ++--- .../dev/prelude/dev/struct.CreateCaptcha.html | 18 ++--- .../dev/prelude/dev/struct.NameHash.html | 16 ++--- .../dev/prelude/dev/struct.Notification.html | 18 ++--- .../dev/prelude/dev/struct.Register.html | 16 ++--- .../dev/prelude/dev/struct.Secret.html | 18 ++--- .../dev/struct.StatsUnixTimestamp.html | 18 ++--- .../prelude/dev/struct.TrafficPattern.html | 18 ++--- .../dev/prelude/dev/struct.UpdateEmail.html | 16 ++--- .../prelude/dev/trait.CloneSPDatabase.html | 6 +- .../dev/prelude/dev/trait.Connect.html | 6 +- .../dev/prelude/dev/trait.DBOps.html | 2 +- .../dev/prelude/dev/trait.GetConnection.html | 6 +- .../dev/prelude/dev/trait.MCDatabase.html | 72 +++++++++---------- .../dev/prelude/dev/trait.Migrate.html | 4 +- .../dev/prelude/dev/type.BoxDynError.html | 2 +- .../dev/prelude/dev/type.DBResult.html | 2 +- .../dev/prelude/enum.DBError.html | 8 +-- db_sqlx_postgres/dev/prelude/enum.Login.html | 16 ++--- db_sqlx_postgres/dev/prelude/index.html | 2 +- .../dev/prelude/struct.AddNotification.html | 18 ++--- .../dev/prelude/struct.Captcha.html | 18 ++--- .../dev/prelude/struct.CreateCaptcha.html | 18 ++--- .../dev/prelude/struct.NameHash.html | 16 ++--- .../dev/prelude/struct.Notification.html | 18 ++--- .../dev/prelude/struct.Register.html | 16 ++--- .../dev/prelude/struct.Secret.html | 18 ++--- .../prelude/struct.StatsUnixTimestamp.html | 18 ++--- .../dev/prelude/struct.TrafficPattern.html | 18 ++--- .../dev/prelude/struct.UpdateEmail.html | 16 ++--- .../dev/prelude/trait.CloneSPDatabase.html | 6 +- .../dev/prelude/trait.Connect.html | 6 +- db_sqlx_postgres/dev/prelude/trait.DBOps.html | 2 +- .../dev/prelude/trait.GetConnection.html | 6 +- .../dev/prelude/trait.MCDatabase.html | 72 +++++++++---------- .../dev/prelude/trait.Migrate.html | 4 +- .../dev/prelude/type.BoxDynError.html | 2 +- .../dev/prelude/type.DBResult.html | 2 +- .../dev/struct.AddNotification.html | 18 ++--- db_sqlx_postgres/dev/struct.Captcha.html | 18 ++--- .../dev/struct.CreateCaptcha.html | 18 ++--- db_sqlx_postgres/dev/struct.NameHash.html | 16 ++--- db_sqlx_postgres/dev/struct.Notification.html | 18 ++--- db_sqlx_postgres/dev/struct.Register.html | 16 ++--- db_sqlx_postgres/dev/struct.Secret.html | 18 ++--- .../dev/struct.StatsUnixTimestamp.html | 18 ++--- .../dev/struct.TrafficPattern.html | 18 ++--- db_sqlx_postgres/dev/struct.UpdateEmail.html | 16 ++--- .../dev/tests/fn.database_works.html | 2 +- db_sqlx_postgres/dev/tests/index.html | 2 +- .../dev/trait.CloneSPDatabase.html | 6 +- db_sqlx_postgres/dev/trait.Connect.html | 6 +- db_sqlx_postgres/dev/trait.DBOps.html | 2 +- db_sqlx_postgres/dev/trait.GetConnection.html | 6 +- db_sqlx_postgres/dev/trait.MCDatabase.html | 72 +++++++++---------- db_sqlx_postgres/dev/trait.Migrate.html | 4 +- db_sqlx_postgres/dev/type.BoxDynError.html | 2 +- db_sqlx_postgres/dev/type.DBResult.html | 2 +- .../prelude/dev/enum.DBError.html | 8 +-- db_sqlx_postgres/prelude/dev/enum.Login.html | 16 ++--- db_sqlx_postgres/prelude/dev/index.html | 2 +- .../prelude/dev/prelude/enum.DBError.html | 8 +-- .../prelude/dev/prelude/enum.Login.html | 16 ++--- .../prelude/dev/prelude/index.html | 2 +- .../dev/prelude/struct.AddNotification.html | 18 ++--- .../prelude/dev/prelude/struct.Captcha.html | 18 ++--- .../dev/prelude/struct.CreateCaptcha.html | 18 ++--- .../prelude/dev/prelude/struct.NameHash.html | 16 ++--- .../dev/prelude/struct.Notification.html | 18 ++--- .../prelude/dev/prelude/struct.Register.html | 16 ++--- .../prelude/dev/prelude/struct.Secret.html | 18 ++--- .../prelude/struct.StatsUnixTimestamp.html | 18 ++--- .../dev/prelude/struct.TrafficPattern.html | 18 ++--- .../dev/prelude/struct.UpdateEmail.html | 16 ++--- .../dev/prelude/trait.CloneSPDatabase.html | 6 +- .../prelude/dev/prelude/trait.Connect.html | 6 +- .../prelude/dev/prelude/trait.DBOps.html | 2 +- .../dev/prelude/trait.GetConnection.html | 6 +- .../prelude/dev/prelude/trait.MCDatabase.html | 72 +++++++++---------- .../prelude/dev/prelude/trait.Migrate.html | 4 +- .../prelude/dev/prelude/type.BoxDynError.html | 2 +- .../prelude/dev/prelude/type.DBResult.html | 2 +- .../prelude/dev/struct.AddNotification.html | 18 ++--- .../prelude/dev/struct.Captcha.html | 18 ++--- .../prelude/dev/struct.CreateCaptcha.html | 18 ++--- .../prelude/dev/struct.NameHash.html | 16 ++--- .../prelude/dev/struct.Notification.html | 18 ++--- .../prelude/dev/struct.Register.html | 16 ++--- .../prelude/dev/struct.Secret.html | 18 ++--- .../dev/struct.StatsUnixTimestamp.html | 18 ++--- .../prelude/dev/struct.TrafficPattern.html | 18 ++--- .../prelude/dev/struct.UpdateEmail.html | 16 ++--- .../prelude/dev/trait.CloneSPDatabase.html | 6 +- .../prelude/dev/trait.Connect.html | 6 +- db_sqlx_postgres/prelude/dev/trait.DBOps.html | 2 +- .../prelude/dev/trait.GetConnection.html | 6 +- .../prelude/dev/trait.MCDatabase.html | 72 +++++++++---------- .../prelude/dev/trait.Migrate.html | 4 +- .../prelude/dev/type.BoxDynError.html | 2 +- .../prelude/dev/type.DBResult.html | 2 +- db_sqlx_postgres/prelude/enum.DBError.html | 8 +-- db_sqlx_postgres/prelude/enum.Login.html | 16 ++--- .../prelude/errors/enum.DBError.html | 8 +-- db_sqlx_postgres/prelude/errors/index.html | 2 +- .../prelude/errors/type.BoxDynError.html | 2 +- .../prelude/errors/type.DBResult.html | 2 +- db_sqlx_postgres/prelude/ops/index.html | 2 +- .../prelude/ops/trait.Connect.html | 6 +- db_sqlx_postgres/prelude/ops/trait.DBOps.html | 2 +- .../prelude/ops/trait.GetConnection.html | 6 +- .../prelude/ops/trait.Migrate.html | 4 +- .../prelude/struct.AddNotification.html | 18 ++--- db_sqlx_postgres/prelude/struct.Captcha.html | 18 ++--- .../prelude/struct.CreateCaptcha.html | 18 ++--- db_sqlx_postgres/prelude/struct.NameHash.html | 16 ++--- .../prelude/struct.Notification.html | 18 ++--- db_sqlx_postgres/prelude/struct.Register.html | 16 ++--- db_sqlx_postgres/prelude/struct.Secret.html | 18 ++--- .../prelude/struct.StatsUnixTimestamp.html | 18 ++--- .../prelude/struct.TrafficPattern.html | 18 ++--- .../prelude/struct.UpdateEmail.html | 16 ++--- .../prelude/tests/fn.database_works.html | 2 +- db_sqlx_postgres/prelude/tests/index.html | 2 +- .../prelude/trait.CloneSPDatabase.html | 6 +- db_sqlx_postgres/prelude/trait.Connect.html | 6 +- db_sqlx_postgres/prelude/trait.DBOps.html | 2 +- .../prelude/trait.GetConnection.html | 6 +- .../prelude/trait.MCDatabase.html | 72 +++++++++---------- db_sqlx_postgres/prelude/trait.Migrate.html | 4 +- .../prelude/type.BoxDynError.html | 2 +- db_sqlx_postgres/prelude/type.DBResult.html | 2 +- db_sqlx_postgres/struct.Database.html | 2 +- mcaptcha/constant.COMPILED_DATE.html | 2 +- 190 files changed, 1238 insertions(+), 1238 deletions(-) diff --git a/db_sqlx_postgres/dev/dev/enum.DBError.html b/db_sqlx_postgres/dev/dev/enum.DBError.html index 039b702f..4301b80c 100644 --- a/db_sqlx_postgres/dev/dev/enum.DBError.html +++ b/db_sqlx_postgres/dev/dev/enum.DBError.html @@ -4,7 +4,7 @@
pub enum DBError {
+    

Enum db_sqlx_postgres::dev::dev::DBError

source · []
pub enum DBError {
     DBError(Box<dyn Error + Send + Sync + 'static, Global>),
     UsernameTaken,
     EmailTaken,
@@ -24,9 +24,9 @@
 

CaptchaNotFound

Captcha not found

TrafficPatternNotFound

Traffic pattern not found

NotificationNotFound

Notification not found

-

Trait Implementations

Formats the value using the given formatter. Read more

-

Formats the value using the given formatter. Read more

-

The lower-level source of this error, if any. Read more

+

Trait Implementations

Formats the value using the given formatter. Read more

+

Formats the value using the given formatter. Read more

+

The lower-level source of this error, if any. Read more

🔬 This is a nightly-only experimental API. (backtrace)

Returns a stack backtrace, if available, of where this error occurred. Read more

👎 Deprecated since 1.42.0:

use the Display impl or to_string()

👎 Deprecated since 1.33.0:

replaced by Error::source, which can support downcasting

diff --git a/db_sqlx_postgres/dev/dev/enum.Login.html b/db_sqlx_postgres/dev/dev/enum.Login.html index 30ef175f..1230ec23 100644 --- a/db_sqlx_postgres/dev/dev/enum.Login.html +++ b/db_sqlx_postgres/dev/dev/enum.Login.html @@ -4,21 +4,21 @@
pub enum Login<'a> {
+    

Enum db_sqlx_postgres::dev::dev::Login

source · []
pub enum Login<'a> {
     Username(&'a str),
     Email(&'a str),
 }
Expand description

types of credentials used as identifiers during login

Variants

Username(&'a str)

username as login

Email(&'a str)

email as login

-

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

-

Deserialize this value from the given Serde deserializer. Read more

-

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

Formats the value using the given formatter. Read more

+

Deserialize this value from the given Serde deserializer. Read more

+

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

-

This method tests for !=.

-

Serialize this value into the given Serde serializer. Read more

-

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

+

This method tests for !=.

+

Serialize this value into the given Serde serializer. Read more

+

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/index.html b/db_sqlx_postgres/dev/dev/index.html index 8a985a47..21a2a0ae 100644 --- a/db_sqlx_postgres/dev/dev/index.html +++ b/db_sqlx_postgres/dev/dev/index.html @@ -4,7 +4,7 @@
Expand description

useful imports for supporting a new database

+

Module db_sqlx_postgres::dev::dev

source · []
Expand description

useful imports for supporting a new database

Modules

useful imports for users working with a supported database

Structs

diff --git a/db_sqlx_postgres/dev/dev/prelude/enum.DBError.html b/db_sqlx_postgres/dev/dev/prelude/enum.DBError.html index 0bbe145b..632e64e0 100644 --- a/db_sqlx_postgres/dev/dev/prelude/enum.DBError.html +++ b/db_sqlx_postgres/dev/dev/prelude/enum.DBError.html @@ -4,7 +4,7 @@
pub enum DBError {
+    

Enum db_sqlx_postgres::dev::dev::prelude::DBError

source · []
pub enum DBError {
     DBError(Box<dyn Error + Send + Sync + 'static, Global>),
     UsernameTaken,
     EmailTaken,
@@ -24,9 +24,9 @@
 

CaptchaNotFound

Captcha not found

TrafficPatternNotFound

Traffic pattern not found

NotificationNotFound

Notification not found

-

Trait Implementations

Formats the value using the given formatter. Read more

-

Formats the value using the given formatter. Read more

-

The lower-level source of this error, if any. Read more

+

Trait Implementations

Formats the value using the given formatter. Read more

+

Formats the value using the given formatter. Read more

+

The lower-level source of this error, if any. Read more

🔬 This is a nightly-only experimental API. (backtrace)

Returns a stack backtrace, if available, of where this error occurred. Read more

👎 Deprecated since 1.42.0:

use the Display impl or to_string()

👎 Deprecated since 1.33.0:

replaced by Error::source, which can support downcasting

diff --git a/db_sqlx_postgres/dev/dev/prelude/enum.Login.html b/db_sqlx_postgres/dev/dev/prelude/enum.Login.html index 16c294c2..00a1a57c 100644 --- a/db_sqlx_postgres/dev/dev/prelude/enum.Login.html +++ b/db_sqlx_postgres/dev/dev/prelude/enum.Login.html @@ -4,21 +4,21 @@
pub enum Login<'a> {
+    

Enum db_sqlx_postgres::dev::dev::prelude::Login

source · []
pub enum Login<'a> {
     Username(&'a str),
     Email(&'a str),
 }
Expand description

types of credentials used as identifiers during login

Variants

Username(&'a str)

username as login

Email(&'a str)

email as login

-

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

-

Deserialize this value from the given Serde deserializer. Read more

-

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

Formats the value using the given formatter. Read more

+

Deserialize this value from the given Serde deserializer. Read more

+

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

-

This method tests for !=.

-

Serialize this value into the given Serde serializer. Read more

-

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

+

This method tests for !=.

+

Serialize this value into the given Serde serializer. Read more

+

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/prelude/index.html b/db_sqlx_postgres/dev/dev/prelude/index.html index c8402530..8a29732f 100644 --- a/db_sqlx_postgres/dev/dev/prelude/index.html +++ b/db_sqlx_postgres/dev/dev/prelude/index.html @@ -4,7 +4,7 @@
Expand description

useful imports for users working with a supported database

+

Module db_sqlx_postgres::dev::dev::prelude

source · []
Expand description

useful imports for users working with a supported database

Structs

Data required to add notification

Data representing a captcha

diff --git a/db_sqlx_postgres/dev/dev/prelude/struct.AddNotification.html b/db_sqlx_postgres/dev/dev/prelude/struct.AddNotification.html index 195aa889..4f0e555b 100644 --- a/db_sqlx_postgres/dev/dev/prelude/struct.AddNotification.html +++ b/db_sqlx_postgres/dev/dev/prelude/struct.AddNotification.html @@ -4,7 +4,7 @@
pub struct AddNotification<'a> {
+    

Struct db_sqlx_postgres::dev::dev::prelude::AddNotification

source · []
pub struct AddNotification<'a> {
     pub to: &'a str,
     pub from: &'a str,
     pub heading: &'a str,
@@ -14,16 +14,16 @@
 
from: &'a str

notification sender

heading: &'a str

heading of the notification

message: &'a str

mesage 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

-

Deserialize this value from the given Serde deserializer. Read more

-

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

+

Deserialize this value from the given Serde deserializer. Read more

+

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

-

This method tests for !=.

-

Serialize this value into the given Serde serializer. Read more

-

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

+

This method tests for !=.

+

Serialize this value into the given Serde serializer. Read more

+

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/prelude/struct.Captcha.html b/db_sqlx_postgres/dev/dev/prelude/struct.Captcha.html index b062bc9a..a1e266f8 100644 --- a/db_sqlx_postgres/dev/dev/prelude/struct.Captcha.html +++ b/db_sqlx_postgres/dev/dev/prelude/struct.Captcha.html @@ -4,7 +4,7 @@
pub struct Captcha {
+    

Struct db_sqlx_postgres::dev::dev::prelude::Captcha

source · []
pub struct Captcha {
     pub config_id: i32,
     pub duration: i32,
     pub description: String,
@@ -14,16 +14,16 @@
 
duration: i32

cool down duration

description: String

description of the captcha

key: String

secret key of the captcha

-

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

-

Deserialize this value from the given Serde deserializer. Read more

-

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

+

Deserialize this value from the given Serde deserializer. Read more

+

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

-

This method tests for !=.

-

Serialize this value into the given Serde serializer. Read more

-

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

+

This method tests for !=.

+

Serialize this value into the given Serde serializer. Read more

+

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/prelude/struct.CreateCaptcha.html b/db_sqlx_postgres/dev/dev/prelude/struct.CreateCaptcha.html index 397eeb84..ca814d86 100644 --- a/db_sqlx_postgres/dev/dev/prelude/struct.CreateCaptcha.html +++ b/db_sqlx_postgres/dev/dev/prelude/struct.CreateCaptcha.html @@ -4,7 +4,7 @@
pub struct CreateCaptcha<'a> {
+    

Struct db_sqlx_postgres::dev::dev::prelude::CreateCaptcha

source · []
pub struct CreateCaptcha<'a> {
     pub duration: i32,
     pub description: &'a str,
     pub key: &'a str,
@@ -12,16 +12,16 @@
 

Fields

duration: i32

cool down duration

description: &'a str

description of the captcha

key: &'a str

secret key of the captcha

-

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

-

Deserialize this value from the given Serde deserializer. Read more

-

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

+

Deserialize this value from the given Serde deserializer. Read more

+

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

-

This method tests for !=.

-

Serialize this value into the given Serde serializer. Read more

-

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

+

This method tests for !=.

+

Serialize this value into the given Serde serializer. Read more

+

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/prelude/struct.NameHash.html b/db_sqlx_postgres/dev/dev/prelude/struct.NameHash.html index 338aae5f..8cec30d6 100644 --- a/db_sqlx_postgres/dev/dev/prelude/struct.NameHash.html +++ b/db_sqlx_postgres/dev/dev/prelude/struct.NameHash.html @@ -4,21 +4,21 @@
pub struct NameHash {
+    

Struct db_sqlx_postgres::dev::dev::prelude::NameHash

source · []
pub struct NameHash {
     pub username: String,
     pub hash: String,
 }
Expand description

type encapsulating username and hashed password of a user

Fields

username: String

username

hash: String

hashed password

-

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

-

Deserialize this value from the given Serde deserializer. Read more

-

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

Formats the value using the given formatter. Read more

+

Deserialize this value from the given Serde deserializer. Read more

+

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

-

This method tests for !=.

-

Serialize this value into the given Serde serializer. Read more

-

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

+

This method tests for !=.

+

Serialize this value into the given Serde serializer. Read more

+

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/prelude/struct.Notification.html b/db_sqlx_postgres/dev/dev/prelude/struct.Notification.html index 93944f7d..e884fc27 100644 --- a/db_sqlx_postgres/dev/dev/prelude/struct.Notification.html +++ b/db_sqlx_postgres/dev/dev/prelude/struct.Notification.html @@ -4,7 +4,7 @@
pub struct Notification {
+    

Struct db_sqlx_postgres::dev::dev::prelude::Notification

source · []
pub struct Notification {
     pub name: Option<String>,
     pub heading: Option<String>,
     pub message: Option<String>,
@@ -16,17 +16,17 @@
 
message: Option<String>

message of the notification

received: Option<i64>

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

-

Deserialize this value from the given Serde deserializer. Read more

+

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.

-

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

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

-

This method tests for !=.

-

Serialize this value into the given Serde serializer. Read more

-

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

+

This method tests for !=.

+

Serialize this value into the given Serde serializer. Read more

+

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/prelude/struct.Register.html b/db_sqlx_postgres/dev/dev/prelude/struct.Register.html index fb48c10c..bf30c153 100644 --- a/db_sqlx_postgres/dev/dev/prelude/struct.Register.html +++ b/db_sqlx_postgres/dev/dev/prelude/struct.Register.html @@ -4,7 +4,7 @@
pub struct Register<'a> {
+    

Struct db_sqlx_postgres::dev::dev::prelude::Register

source · []
pub struct Register<'a> {
     pub username: &'a str,
     pub secret: &'a str,
     pub hash: &'a str,
@@ -14,15 +14,15 @@
 
secret: &'a str

secret of new user

hash: &'a str

hashed password of new use

email: Option<&'a str>

Optionally, email of new use

-

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

-

Deserialize this value from the given Serde deserializer. Read more

-

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

Formats the value using the given formatter. Read more

+

Deserialize this value from the given Serde deserializer. Read more

+

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

-

This method tests for !=.

-

Serialize this value into the given Serde serializer. Read more

-

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

+

This method tests for !=.

+

Serialize this value into the given Serde serializer. Read more

+

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/prelude/struct.Secret.html b/db_sqlx_postgres/dev/dev/prelude/struct.Secret.html index b75a88f8..43456794 100644 --- a/db_sqlx_postgres/dev/dev/prelude/struct.Secret.html +++ b/db_sqlx_postgres/dev/dev/prelude/struct.Secret.html @@ -4,20 +4,20 @@
pub struct Secret {
+    

Struct db_sqlx_postgres::dev::dev::prelude::Secret

source · []
pub struct Secret {
     pub secret: String,
 }
Expand description

datastructure representing a user’s secret

Fields

secret: String

user’s secret

-

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

-

Deserialize this value from the given Serde deserializer. Read more

-

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

+

Deserialize this value from the given Serde deserializer. Read more

+

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

-

This method tests for !=.

-

Serialize this value into the given Serde serializer. Read more

-

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

+

This method tests for !=.

+

Serialize this value into the given Serde serializer. Read more

+

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/prelude/struct.StatsUnixTimestamp.html b/db_sqlx_postgres/dev/dev/prelude/struct.StatsUnixTimestamp.html index 1648e190..85f2f1bb 100644 --- a/db_sqlx_postgres/dev/dev/prelude/struct.StatsUnixTimestamp.html +++ b/db_sqlx_postgres/dev/dev/prelude/struct.StatsUnixTimestamp.html @@ -4,7 +4,7 @@
pub struct StatsUnixTimestamp {
+    

Struct db_sqlx_postgres::dev::dev::prelude::StatsUnixTimestamp

source · []
pub struct StatsUnixTimestamp {
     pub config_fetches: Vec<i64, Global>,
     pub solves: Vec<i64, Global>,
     pub confirms: Vec<i64, Global>,
@@ -12,16 +12,16 @@
 

Fields

config_fetches: Vec<i64, Global>

times at which the configuration were fetched

solves: Vec<i64, Global>

times at which the PoW was solved

confirms: Vec<i64, Global>

times at which the PoW token was verified

-

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

-

Deserialize this value from the given Serde deserializer. Read more

-

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

+

Deserialize this value from the given Serde deserializer. Read more

+

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

-

This method tests for !=.

-

Serialize this value into the given Serde serializer. Read more

-

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

+

This method tests for !=.

+

Serialize this value into the given Serde serializer. Read more

+

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/prelude/struct.TrafficPattern.html b/db_sqlx_postgres/dev/dev/prelude/struct.TrafficPattern.html index 3cd24738..f98dfbde 100644 --- a/db_sqlx_postgres/dev/dev/prelude/struct.TrafficPattern.html +++ b/db_sqlx_postgres/dev/dev/prelude/struct.TrafficPattern.html @@ -4,7 +4,7 @@
pub struct TrafficPattern {
+    

Struct db_sqlx_postgres::dev::dev::prelude::TrafficPattern

source · []
pub struct TrafficPattern {
     pub avg_traffic: u32,
     pub peak_sustainable_traffic: u32,
     pub broke_my_site_traffic: Option<u32>,
@@ -12,16 +12,16 @@
 

Fields

avg_traffic: u32

average traffic of user’s website

peak_sustainable_traffic: u32

the peak traffic that the user’s website can handle

broke_my_site_traffic: Option<u32>

trafic that bought the user’s website down; optional

-

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

-

Deserialize this value from the given Serde deserializer. Read more

-

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

+

Deserialize this value from the given Serde deserializer. Read more

+

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

-

This method tests for !=.

-

Serialize this value into the given Serde serializer. Read more

-

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

+

This method tests for !=.

+

Serialize this value into the given Serde serializer. Read more

+

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/prelude/struct.UpdateEmail.html b/db_sqlx_postgres/dev/dev/prelude/struct.UpdateEmail.html index 8a52ece6..bb81aa62 100644 --- a/db_sqlx_postgres/dev/dev/prelude/struct.UpdateEmail.html +++ b/db_sqlx_postgres/dev/dev/prelude/struct.UpdateEmail.html @@ -4,21 +4,21 @@
pub struct UpdateEmail<'a> {
+    

Struct db_sqlx_postgres::dev::dev::prelude::UpdateEmail

source · []
pub struct UpdateEmail<'a> {
     pub username: &'a str,
     pub new_email: &'a str,
 }
Expand description

data required to update them email of a user

Fields

username: &'a str

username of the user

new_email: &'a str

new email address of the user

-

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

-

Deserialize this value from the given Serde deserializer. Read more

-

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

Formats the value using the given formatter. Read more

+

Deserialize this value from the given Serde deserializer. Read more

+

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

-

This method tests for !=.

-

Serialize this value into the given Serde serializer. Read more

-

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

+

This method tests for !=.

+

Serialize this value into the given Serde serializer. Read more

+

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/prelude/trait.CloneSPDatabase.html b/db_sqlx_postgres/dev/dev/prelude/trait.CloneSPDatabase.html index 4d3df2c4..507aca7a 100644 --- a/db_sqlx_postgres/dev/dev/prelude/trait.CloneSPDatabase.html +++ b/db_sqlx_postgres/dev/dev/prelude/trait.CloneSPDatabase.html @@ -4,9 +4,9 @@
pub trait CloneSPDatabase {
+    

Trait db_sqlx_postgres::dev::dev::prelude::CloneSPDatabase

source · []
pub trait CloneSPDatabase {
     fn clone_db(&self) -> Box<dyn MCDatabase + 'static, Global>;
 }
Expand description

Trait to clone MCDatabase

-

Required methods

clone DB

-

Implementors

+

Required methods

clone DB

+

Implementors

\ No newline at end of file diff --git a/db_sqlx_postgres/dev/dev/prelude/trait.Connect.html b/db_sqlx_postgres/dev/dev/prelude/trait.Connect.html index 50036431..7a3fbc94 100644 --- a/db_sqlx_postgres/dev/dev/prelude/trait.Connect.html +++ b/db_sqlx_postgres/dev/dev/prelude/trait.Connect.html @@ -4,12 +4,12 @@
pub trait Connect {
+    

Trait db_sqlx_postgres::dev::dev::prelude::Connect

source · []
pub trait Connect {
     type Pool: MCDatabase;
     fn connect<'async_trait>(
        self
    ) -> Pin<Box<dyn Future<Output = Result<Self::Pool, DBError>> + Send + 'async_trait, Global>>
    where
        Self: 'async_trait
; }
Expand description

Create databse connection

-

Associated Types

database specific pool-type

-

Required methods

database specific error-type +

Associated Types

database specific pool-type

+

Required methods

database specific error-type create connection pool

Implementors

\ No newline at end of file diff --git a/db_sqlx_postgres/dev/dev/prelude/trait.DBOps.html b/db_sqlx_postgres/dev/dev/prelude/trait.DBOps.html index e42994ab..48d247c6 100644 --- a/db_sqlx_postgres/dev/dev/prelude/trait.DBOps.html +++ b/db_sqlx_postgres/dev/dev/prelude/trait.DBOps.html @@ -4,6 +4,6 @@
pub trait DBOps: GetConnection + Migrate { }
Expand description

Database operations trait(migrations, pool creation and fetching connection from pool)

+

Trait db_sqlx_postgres::dev::dev::prelude::DBOps

source · []
pub trait DBOps: GetConnection + Migrate { }
Expand description

Database operations trait(migrations, pool creation and fetching connection from pool)

Implementors

\ No newline at end of file diff --git a/db_sqlx_postgres/dev/dev/prelude/trait.GetConnection.html b/db_sqlx_postgres/dev/dev/prelude/trait.GetConnection.html index 8a0a4ab0..3478718f 100644 --- a/db_sqlx_postgres/dev/dev/prelude/trait.GetConnection.html +++ b/db_sqlx_postgres/dev/dev/prelude/trait.GetConnection.html @@ -4,12 +4,12 @@
pub trait GetConnection {
+    

Trait db_sqlx_postgres::dev::dev::prelude::GetConnection

source · []
pub trait GetConnection {
     type Conn;
     fn get_conn<'life0, 'async_trait>(
        &'life0 self
    ) -> Pin<Box<dyn Future<Output = Result<Self::Conn, DBError>> + Send + 'async_trait, Global>>
    where
        'life0: 'async_trait,
        Self: 'async_trait
; }
Expand description

Get database connection

-

Associated Types

database connection type

-

Required methods

database specific error-type +

Associated Types

database connection type

+

Required methods

database specific error-type get connection from connection pool

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 53e535cd..cbe2901c 100644 --- a/db_sqlx_postgres/dev/dev/prelude/trait.MCDatabase.html +++ b/db_sqlx_postgres/dev/dev/prelude/trait.MCDatabase.html @@ -4,7 +4,7 @@
pub trait MCDatabase: Send + Sync + CloneSPDatabase {
+    

Trait db_sqlx_postgres::dev::dev::prelude::MCDatabase

source · []
pub trait MCDatabase: Send + Sync + CloneSPDatabase {
 
Show 35 methods fn ping<'life0, 'async_trait>(
        &'life0 self
    ) -> Pin<Box<dyn Future<Output = bool> + Send + 'async_trait, Global>>
    where
        'life0: 'async_trait,
        Self: 'async_trait
; fn register<'life0, 'life1, 'async_trait>(
        &'life0 self,
        p: &'life1 Register<'_>
    ) -> Pin<Box<dyn Future<Output = Result<(), DBError>> + Send + 'async_trait, Global>>
    where
        'life0: 'async_trait,
        'life1: 'async_trait,
        Self: 'async_trait
; fn delete_user<'life0, 'life1, 'async_trait>(
        &'life0 self,
        username: &'life1 str
    ) -> Pin<Box<dyn Future<Output = Result<(), DBError>> + Send + 'async_trait, Global>>
    where
        'life0: 'async_trait,
        'life1: 'async_trait,
        Self: 'async_trait
; @@ -42,40 +42,40 @@ fn fetch_confirm<'life0, 'life1, 'life2, 'async_trait>(
        &'life0 self,
        user: &'life1 str,
        key: &'life2 str
    ) -> Pin<Box<dyn Future<Output = Result<Vec<i64, Global>, DBError>> + Send + 'async_trait, Global>>
    where
        'life0: 'async_trait,
        'life1: 'async_trait,
        'life2: 'async_trait,
        Self: 'async_trait
;
}
Expand description

mCaptcha’s database requirements. To implement support for $Database, kindly implement this trait.

-

Required methods

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

-

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

-

featch PoWConfig fetches

-

featch PoWConfig solves

-

featch PoWConfig confirms

+

Required methods

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

+

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

+

featch PoWConfig fetches

+

featch PoWConfig solves

+

featch PoWConfig confirms

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 f606f632..cd2d76ac 100644 --- a/db_sqlx_postgres/dev/dev/prelude/trait.Migrate.html +++ b/db_sqlx_postgres/dev/dev/prelude/trait.Migrate.html @@ -4,10 +4,10 @@
pub trait Migrate: MCDatabase {
+    

Trait db_sqlx_postgres::dev::dev::prelude::Migrate

source · []
pub trait Migrate: MCDatabase {
     fn migrate<'life0, 'async_trait>(
        &'life0 self
    ) -> Pin<Box<dyn Future<Output = Result<(), DBError>> + Send + 'async_trait, Global>>
    where
        'life0: 'async_trait,
        Self: 'async_trait
; }
Expand description

database migrations

-

Required methods

database specific error-type +

Required methods

database specific error-type run migrations

Implementors

\ No newline at end of file diff --git a/db_sqlx_postgres/dev/dev/prelude/type.BoxDynError.html b/db_sqlx_postgres/dev/dev/prelude/type.BoxDynError.html index 6fd578ee..00de945c 100644 --- a/db_sqlx_postgres/dev/dev/prelude/type.BoxDynError.html +++ b/db_sqlx_postgres/dev/dev/prelude/type.BoxDynError.html @@ -4,6 +4,6 @@
pub type BoxDynError = Box<dyn Error + Send + Sync + 'static, Global>;
Expand description

Convenience type alias for grouping driver-specific errors

+

Type Definition db_sqlx_postgres::dev::dev::prelude::BoxDynError

source · []
pub type BoxDynError = Box<dyn Error + Send + Sync + 'static, Global>;
Expand description

Convenience type alias for grouping driver-specific errors

\ No newline at end of file diff --git a/db_sqlx_postgres/dev/dev/prelude/type.DBResult.html b/db_sqlx_postgres/dev/dev/prelude/type.DBResult.html index 14639276..d2670082 100644 --- a/db_sqlx_postgres/dev/dev/prelude/type.DBResult.html +++ b/db_sqlx_postgres/dev/dev/prelude/type.DBResult.html @@ -4,6 +4,6 @@
pub type DBResult<V> = Result<V, DBError>;
Expand description

Generic result data structure

+

Type Definition db_sqlx_postgres::dev::dev::prelude::DBResult

source · []
pub type DBResult<V> = Result<V, DBError>;
Expand description

Generic result data structure

\ No newline at end of file diff --git a/db_sqlx_postgres/dev/dev/struct.AddNotification.html b/db_sqlx_postgres/dev/dev/struct.AddNotification.html index 5980d61e..43b3d9c2 100644 --- a/db_sqlx_postgres/dev/dev/struct.AddNotification.html +++ b/db_sqlx_postgres/dev/dev/struct.AddNotification.html @@ -4,7 +4,7 @@
pub struct AddNotification<'a> {
+    

Struct db_sqlx_postgres::dev::dev::AddNotification

source · []
pub struct AddNotification<'a> {
     pub to: &'a str,
     pub from: &'a str,
     pub heading: &'a str,
@@ -14,16 +14,16 @@
 
from: &'a str

notification sender

heading: &'a str

heading of the notification

message: &'a str

mesage 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

-

Deserialize this value from the given Serde deserializer. Read more

-

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

+

Deserialize this value from the given Serde deserializer. Read more

+

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

-

This method tests for !=.

-

Serialize this value into the given Serde serializer. Read more

-

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

+

This method tests for !=.

+

Serialize this value into the given Serde serializer. Read more

+

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/struct.Captcha.html b/db_sqlx_postgres/dev/dev/struct.Captcha.html index 386639df..9c862619 100644 --- a/db_sqlx_postgres/dev/dev/struct.Captcha.html +++ b/db_sqlx_postgres/dev/dev/struct.Captcha.html @@ -4,7 +4,7 @@
pub struct Captcha {
+    

Struct db_sqlx_postgres::dev::dev::Captcha

source · []
pub struct Captcha {
     pub config_id: i32,
     pub duration: i32,
     pub description: String,
@@ -14,16 +14,16 @@
 
duration: i32

cool down duration

description: String

description of the captcha

key: String

secret key of the captcha

-

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

-

Deserialize this value from the given Serde deserializer. Read more

-

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

+

Deserialize this value from the given Serde deserializer. Read more

+

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

-

This method tests for !=.

-

Serialize this value into the given Serde serializer. Read more

-

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

+

This method tests for !=.

+

Serialize this value into the given Serde serializer. Read more

+

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/struct.CreateCaptcha.html b/db_sqlx_postgres/dev/dev/struct.CreateCaptcha.html index b4a64e6d..0f521b8d 100644 --- a/db_sqlx_postgres/dev/dev/struct.CreateCaptcha.html +++ b/db_sqlx_postgres/dev/dev/struct.CreateCaptcha.html @@ -4,7 +4,7 @@
pub struct CreateCaptcha<'a> {
+    

Struct db_sqlx_postgres::dev::dev::CreateCaptcha

source · []
pub struct CreateCaptcha<'a> {
     pub duration: i32,
     pub description: &'a str,
     pub key: &'a str,
@@ -12,16 +12,16 @@
 

Fields

duration: i32

cool down duration

description: &'a str

description of the captcha

key: &'a str

secret key of the captcha

-

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

-

Deserialize this value from the given Serde deserializer. Read more

-

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

+

Deserialize this value from the given Serde deserializer. Read more

+

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

-

This method tests for !=.

-

Serialize this value into the given Serde serializer. Read more

-

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

+

This method tests for !=.

+

Serialize this value into the given Serde serializer. Read more

+

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/struct.NameHash.html b/db_sqlx_postgres/dev/dev/struct.NameHash.html index 1bca5924..4a4b5d7d 100644 --- a/db_sqlx_postgres/dev/dev/struct.NameHash.html +++ b/db_sqlx_postgres/dev/dev/struct.NameHash.html @@ -4,21 +4,21 @@
pub struct NameHash {
+    

Struct db_sqlx_postgres::dev::dev::NameHash

source · []
pub struct NameHash {
     pub username: String,
     pub hash: String,
 }
Expand description

type encapsulating username and hashed password of a user

Fields

username: String

username

hash: String

hashed password

-

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

-

Deserialize this value from the given Serde deserializer. Read more

-

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

Formats the value using the given formatter. Read more

+

Deserialize this value from the given Serde deserializer. Read more

+

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

-

This method tests for !=.

-

Serialize this value into the given Serde serializer. Read more

-

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

+

This method tests for !=.

+

Serialize this value into the given Serde serializer. Read more

+

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/struct.Notification.html b/db_sqlx_postgres/dev/dev/struct.Notification.html index cc7180dc..40fb1a97 100644 --- a/db_sqlx_postgres/dev/dev/struct.Notification.html +++ b/db_sqlx_postgres/dev/dev/struct.Notification.html @@ -4,7 +4,7 @@
pub struct Notification {
+    

Struct db_sqlx_postgres::dev::dev::Notification

source · []
pub struct Notification {
     pub name: Option<String>,
     pub heading: Option<String>,
     pub message: Option<String>,
@@ -16,17 +16,17 @@
 
message: Option<String>

message of the notification

received: Option<i64>

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

-

Deserialize this value from the given Serde deserializer. Read more

+

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.

-

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

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

-

This method tests for !=.

-

Serialize this value into the given Serde serializer. Read more

-

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

+

This method tests for !=.

+

Serialize this value into the given Serde serializer. Read more

+

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/struct.Register.html b/db_sqlx_postgres/dev/dev/struct.Register.html index 660b398e..18b6669f 100644 --- a/db_sqlx_postgres/dev/dev/struct.Register.html +++ b/db_sqlx_postgres/dev/dev/struct.Register.html @@ -4,7 +4,7 @@
pub struct Register<'a> {
+    

Struct db_sqlx_postgres::dev::dev::Register

source · []
pub struct Register<'a> {
     pub username: &'a str,
     pub secret: &'a str,
     pub hash: &'a str,
@@ -14,15 +14,15 @@
 
secret: &'a str

secret of new user

hash: &'a str

hashed password of new use

email: Option<&'a str>

Optionally, email of new use

-

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

-

Deserialize this value from the given Serde deserializer. Read more

-

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

Formats the value using the given formatter. Read more

+

Deserialize this value from the given Serde deserializer. Read more

+

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

-

This method tests for !=.

-

Serialize this value into the given Serde serializer. Read more

-

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

+

This method tests for !=.

+

Serialize this value into the given Serde serializer. Read more

+

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/struct.Secret.html b/db_sqlx_postgres/dev/dev/struct.Secret.html index dd3964c0..f79aa3e2 100644 --- a/db_sqlx_postgres/dev/dev/struct.Secret.html +++ b/db_sqlx_postgres/dev/dev/struct.Secret.html @@ -4,20 +4,20 @@
pub struct Secret {
+    

Struct db_sqlx_postgres::dev::dev::Secret

source · []
pub struct Secret {
     pub secret: String,
 }
Expand description

datastructure representing a user’s secret

Fields

secret: String

user’s secret

-

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

-

Deserialize this value from the given Serde deserializer. Read more

-

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

+

Deserialize this value from the given Serde deserializer. Read more

+

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

-

This method tests for !=.

-

Serialize this value into the given Serde serializer. Read more

-

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

+

This method tests for !=.

+

Serialize this value into the given Serde serializer. Read more

+

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/struct.StatsUnixTimestamp.html b/db_sqlx_postgres/dev/dev/struct.StatsUnixTimestamp.html index f9991cbc..02fbfeb7 100644 --- a/db_sqlx_postgres/dev/dev/struct.StatsUnixTimestamp.html +++ b/db_sqlx_postgres/dev/dev/struct.StatsUnixTimestamp.html @@ -4,7 +4,7 @@
pub struct StatsUnixTimestamp {
+    

Struct db_sqlx_postgres::dev::dev::StatsUnixTimestamp

source · []
pub struct StatsUnixTimestamp {
     pub config_fetches: Vec<i64, Global>,
     pub solves: Vec<i64, Global>,
     pub confirms: Vec<i64, Global>,
@@ -12,16 +12,16 @@
 

Fields

config_fetches: Vec<i64, Global>

times at which the configuration were fetched

solves: Vec<i64, Global>

times at which the PoW was solved

confirms: Vec<i64, Global>

times at which the PoW token was verified

-

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

-

Deserialize this value from the given Serde deserializer. Read more

-

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

+

Deserialize this value from the given Serde deserializer. Read more

+

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

-

This method tests for !=.

-

Serialize this value into the given Serde serializer. Read more

-

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

+

This method tests for !=.

+

Serialize this value into the given Serde serializer. Read more

+

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/struct.TrafficPattern.html b/db_sqlx_postgres/dev/dev/struct.TrafficPattern.html index 64f5f1f9..cca0d842 100644 --- a/db_sqlx_postgres/dev/dev/struct.TrafficPattern.html +++ b/db_sqlx_postgres/dev/dev/struct.TrafficPattern.html @@ -4,7 +4,7 @@
pub struct TrafficPattern {
+    

Struct db_sqlx_postgres::dev::dev::TrafficPattern

source · []
pub struct TrafficPattern {
     pub avg_traffic: u32,
     pub peak_sustainable_traffic: u32,
     pub broke_my_site_traffic: Option<u32>,
@@ -12,16 +12,16 @@
 

Fields

avg_traffic: u32

average traffic of user’s website

peak_sustainable_traffic: u32

the peak traffic that the user’s website can handle

broke_my_site_traffic: Option<u32>

trafic that bought the user’s website down; optional

-

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

-

Deserialize this value from the given Serde deserializer. Read more

-

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

+

Deserialize this value from the given Serde deserializer. Read more

+

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

-

This method tests for !=.

-

Serialize this value into the given Serde serializer. Read more

-

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

+

This method tests for !=.

+

Serialize this value into the given Serde serializer. Read more

+

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/struct.UpdateEmail.html b/db_sqlx_postgres/dev/dev/struct.UpdateEmail.html index 997c2fb2..86148273 100644 --- a/db_sqlx_postgres/dev/dev/struct.UpdateEmail.html +++ b/db_sqlx_postgres/dev/dev/struct.UpdateEmail.html @@ -4,21 +4,21 @@
pub struct UpdateEmail<'a> {
+    

Struct db_sqlx_postgres::dev::dev::UpdateEmail

source · []
pub struct UpdateEmail<'a> {
     pub username: &'a str,
     pub new_email: &'a str,
 }
Expand description

data required to update them email of a user

Fields

username: &'a str

username of the user

new_email: &'a str

new email address of the user

-

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

-

Deserialize this value from the given Serde deserializer. Read more

-

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

Formats the value using the given formatter. Read more

+

Deserialize this value from the given Serde deserializer. Read more

+

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

-

This method tests for !=.

-

Serialize this value into the given Serde serializer. Read more

-

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

+

This method tests for !=.

+

Serialize this value into the given Serde serializer. Read more

+

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/trait.CloneSPDatabase.html b/db_sqlx_postgres/dev/dev/trait.CloneSPDatabase.html index c1ea0ad3..8397b2bf 100644 --- a/db_sqlx_postgres/dev/dev/trait.CloneSPDatabase.html +++ b/db_sqlx_postgres/dev/dev/trait.CloneSPDatabase.html @@ -4,9 +4,9 @@
pub trait CloneSPDatabase {
+    

Trait db_sqlx_postgres::dev::dev::CloneSPDatabase

source · []
pub trait CloneSPDatabase {
     fn clone_db(&self) -> Box<dyn MCDatabase + 'static, Global>;
 }
Expand description

Trait to clone MCDatabase

-

Required methods

clone DB

-

Implementors

+

Required methods

clone DB

+

Implementors

\ No newline at end of file diff --git a/db_sqlx_postgres/dev/dev/trait.Connect.html b/db_sqlx_postgres/dev/dev/trait.Connect.html index 27e05f55..7252ae45 100644 --- a/db_sqlx_postgres/dev/dev/trait.Connect.html +++ b/db_sqlx_postgres/dev/dev/trait.Connect.html @@ -4,12 +4,12 @@
pub trait Connect {
+    

Trait db_sqlx_postgres::dev::dev::Connect

source · []
pub trait Connect {
     type Pool: MCDatabase;
     fn connect<'async_trait>(
        self
    ) -> Pin<Box<dyn Future<Output = Result<Self::Pool, DBError>> + Send + 'async_trait, Global>>
    where
        Self: 'async_trait
; }
Expand description

Create databse connection

-

Associated Types

database specific pool-type

-

Required methods

database specific error-type +

Associated Types

database specific pool-type

+

Required methods

database specific error-type create connection pool

Implementors

\ No newline at end of file diff --git a/db_sqlx_postgres/dev/dev/trait.DBOps.html b/db_sqlx_postgres/dev/dev/trait.DBOps.html index 15ff9c02..f96f2496 100644 --- a/db_sqlx_postgres/dev/dev/trait.DBOps.html +++ b/db_sqlx_postgres/dev/dev/trait.DBOps.html @@ -4,6 +4,6 @@
pub trait DBOps: GetConnection + Migrate { }
Expand description

Database operations trait(migrations, pool creation and fetching connection from pool)

+

Trait db_sqlx_postgres::dev::dev::DBOps

source · []
pub trait DBOps: GetConnection + Migrate { }
Expand description

Database operations trait(migrations, pool creation and fetching connection from pool)

Implementors

\ No newline at end of file diff --git a/db_sqlx_postgres/dev/dev/trait.GetConnection.html b/db_sqlx_postgres/dev/dev/trait.GetConnection.html index 21c577c3..31c76825 100644 --- a/db_sqlx_postgres/dev/dev/trait.GetConnection.html +++ b/db_sqlx_postgres/dev/dev/trait.GetConnection.html @@ -4,12 +4,12 @@
pub trait GetConnection {
+    

Trait db_sqlx_postgres::dev::dev::GetConnection

source · []
pub trait GetConnection {
     type Conn;
     fn get_conn<'life0, 'async_trait>(
        &'life0 self
    ) -> Pin<Box<dyn Future<Output = Result<Self::Conn, DBError>> + Send + 'async_trait, Global>>
    where
        'life0: 'async_trait,
        Self: 'async_trait
; }
Expand description

Get database connection

-

Associated Types

database connection type

-

Required methods

database specific error-type +

Associated Types

database connection type

+

Required methods

database specific error-type get connection from connection pool

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 9532df4a..a48c7018 100644 --- a/db_sqlx_postgres/dev/dev/trait.MCDatabase.html +++ b/db_sqlx_postgres/dev/dev/trait.MCDatabase.html @@ -4,7 +4,7 @@
pub trait MCDatabase: Send + Sync + CloneSPDatabase {
+    

Trait db_sqlx_postgres::dev::dev::MCDatabase

source · []
pub trait MCDatabase: Send + Sync + CloneSPDatabase {
 
Show 35 methods fn ping<'life0, 'async_trait>(
        &'life0 self
    ) -> Pin<Box<dyn Future<Output = bool> + Send + 'async_trait, Global>>
    where
        'life0: 'async_trait,
        Self: 'async_trait
; fn register<'life0, 'life1, 'async_trait>(
        &'life0 self,
        p: &'life1 Register<'_>
    ) -> Pin<Box<dyn Future<Output = Result<(), DBError>> + Send + 'async_trait, Global>>
    where
        'life0: 'async_trait,
        'life1: 'async_trait,
        Self: 'async_trait
; fn delete_user<'life0, 'life1, 'async_trait>(
        &'life0 self,
        username: &'life1 str
    ) -> Pin<Box<dyn Future<Output = Result<(), DBError>> + Send + 'async_trait, Global>>
    where
        'life0: 'async_trait,
        'life1: 'async_trait,
        Self: 'async_trait
; @@ -42,40 +42,40 @@ fn fetch_confirm<'life0, 'life1, 'life2, 'async_trait>(
        &'life0 self,
        user: &'life1 str,
        key: &'life2 str
    ) -> Pin<Box<dyn Future<Output = Result<Vec<i64, Global>, DBError>> + Send + 'async_trait, Global>>
    where
        'life0: 'async_trait,
        'life1: 'async_trait,
        'life2: 'async_trait,
        Self: 'async_trait
;
}
Expand description

mCaptcha’s database requirements. To implement support for $Database, kindly implement this trait.

-

Required methods

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

-

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

-

featch PoWConfig fetches

-

featch PoWConfig solves

-

featch PoWConfig confirms

+

Required methods

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

+

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

+

featch PoWConfig fetches

+

featch PoWConfig solves

+

featch PoWConfig confirms

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 fb12c203..35e26230 100644 --- a/db_sqlx_postgres/dev/dev/trait.Migrate.html +++ b/db_sqlx_postgres/dev/dev/trait.Migrate.html @@ -4,10 +4,10 @@
pub trait Migrate: MCDatabase {
+    

Trait db_sqlx_postgres::dev::dev::Migrate

source · []
pub trait Migrate: MCDatabase {
     fn migrate<'life0, 'async_trait>(
        &'life0 self
    ) -> Pin<Box<dyn Future<Output = Result<(), DBError>> + Send + 'async_trait, Global>>
    where
        'life0: 'async_trait,
        Self: 'async_trait
; }
Expand description

database migrations

-

Required methods

database specific error-type +

Required methods

database specific error-type run migrations

Implementors

\ No newline at end of file diff --git a/db_sqlx_postgres/dev/dev/type.BoxDynError.html b/db_sqlx_postgres/dev/dev/type.BoxDynError.html index 96279b07..a10beb32 100644 --- a/db_sqlx_postgres/dev/dev/type.BoxDynError.html +++ b/db_sqlx_postgres/dev/dev/type.BoxDynError.html @@ -4,6 +4,6 @@
pub type BoxDynError = Box<dyn Error + Send + Sync + 'static, Global>;
Expand description

Convenience type alias for grouping driver-specific errors

+

Type Definition db_sqlx_postgres::dev::dev::BoxDynError

source · []
pub type BoxDynError = Box<dyn Error + Send + Sync + 'static, Global>;
Expand description

Convenience type alias for grouping driver-specific errors

\ No newline at end of file diff --git a/db_sqlx_postgres/dev/dev/type.DBResult.html b/db_sqlx_postgres/dev/dev/type.DBResult.html index d3fe3d7d..d5107dee 100644 --- a/db_sqlx_postgres/dev/dev/type.DBResult.html +++ b/db_sqlx_postgres/dev/dev/type.DBResult.html @@ -4,6 +4,6 @@
-

Type Definition db_sqlx_postgres::dev::dev::DBResult

[]
pub type DBResult<V> = Result<V, DBError>;
Expand description

Generic result data structure

+

Type Definition db_sqlx_postgres::dev::dev::DBResult

source · []
pub type DBResult<V> = Result<V, DBError>;
Expand description

Generic result data structure

\ No newline at end of file diff --git a/db_sqlx_postgres/dev/enum.DBError.html b/db_sqlx_postgres/dev/enum.DBError.html index 3ebb7c26..52b011cb 100644 --- a/db_sqlx_postgres/dev/enum.DBError.html +++ b/db_sqlx_postgres/dev/enum.DBError.html @@ -4,7 +4,7 @@
pub enum DBError {
+    

Enum db_sqlx_postgres::dev::DBError

source · []
pub enum DBError {
     DBError(Box<dyn Error + Send + Sync + 'static, Global>),
     UsernameTaken,
     EmailTaken,
@@ -24,9 +24,9 @@
 

CaptchaNotFound

Captcha not found

TrafficPatternNotFound

Traffic pattern not found

NotificationNotFound

Notification not found

-

Trait Implementations

Formats the value using the given formatter. Read more

-

Formats the value using the given formatter. Read more

-

The lower-level source of this error, if any. Read more

+

Trait Implementations

Formats the value using the given formatter. Read more

+

Formats the value using the given formatter. Read more

+

The lower-level source of this error, if any. Read more

🔬 This is a nightly-only experimental API. (backtrace)

Returns a stack backtrace, if available, of where this error occurred. Read more

👎 Deprecated since 1.42.0:

use the Display impl or to_string()

👎 Deprecated since 1.33.0:

replaced by Error::source, which can support downcasting

diff --git a/db_sqlx_postgres/dev/enum.Login.html b/db_sqlx_postgres/dev/enum.Login.html index 91386eea..0cea8352 100644 --- a/db_sqlx_postgres/dev/enum.Login.html +++ b/db_sqlx_postgres/dev/enum.Login.html @@ -4,21 +4,21 @@
pub enum Login<'a> {
+    

Enum db_sqlx_postgres::dev::Login

source · []
pub enum Login<'a> {
     Username(&'a str),
     Email(&'a str),
 }
Expand description

types of credentials used as identifiers during login

Variants

Username(&'a str)

username as login

Email(&'a str)

email as login

-

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

-

Deserialize this value from the given Serde deserializer. Read more

-

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

Formats the value using the given formatter. Read more

+

Deserialize this value from the given Serde deserializer. Read more

+

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

-

This method tests for !=.

-

Serialize this value into the given Serde serializer. Read more

-

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

+

This method tests for !=.

+

Serialize this value into the given Serde serializer. Read more

+

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/errors/enum.DBError.html b/db_sqlx_postgres/dev/errors/enum.DBError.html index 4ec5e61c..e9b75da3 100644 --- a/db_sqlx_postgres/dev/errors/enum.DBError.html +++ b/db_sqlx_postgres/dev/errors/enum.DBError.html @@ -4,7 +4,7 @@
pub enum DBError {
+    

Enum db_sqlx_postgres::dev::errors::DBError

source · []
pub enum DBError {
     DBError(Box<dyn Error + Send + Sync + 'static, Global>),
     UsernameTaken,
     EmailTaken,
@@ -24,9 +24,9 @@
 

CaptchaNotFound

Captcha not found

TrafficPatternNotFound

Traffic pattern not found

NotificationNotFound

Notification not found

-

Trait Implementations

Formats the value using the given formatter. Read more

-

Formats the value using the given formatter. Read more

-

The lower-level source of this error, if any. Read more

+

Trait Implementations

Formats the value using the given formatter. Read more

+

Formats the value using the given formatter. Read more

+

The lower-level source of this error, if any. Read more

🔬 This is a nightly-only experimental API. (backtrace)

Returns a stack backtrace, if available, of where this error occurred. Read more

👎 Deprecated since 1.42.0:

use the Display impl or to_string()

👎 Deprecated since 1.33.0:

replaced by Error::source, which can support downcasting

diff --git a/db_sqlx_postgres/dev/errors/index.html b/db_sqlx_postgres/dev/errors/index.html index b1b909f5..302eb919 100644 --- a/db_sqlx_postgres/dev/errors/index.html +++ b/db_sqlx_postgres/dev/errors/index.html @@ -4,7 +4,7 @@
Expand description

represents all the ways a trait can fail using this crate

+

Module db_sqlx_postgres::dev::errors

source · []
Expand description

represents all the ways a trait can fail using this crate

Enums

Error data structure grouping various error subtypes

Type Definitions

diff --git a/db_sqlx_postgres/dev/errors/type.BoxDynError.html b/db_sqlx_postgres/dev/errors/type.BoxDynError.html index e099e369..20243e09 100644 --- a/db_sqlx_postgres/dev/errors/type.BoxDynError.html +++ b/db_sqlx_postgres/dev/errors/type.BoxDynError.html @@ -4,6 +4,6 @@
pub type BoxDynError = Box<dyn Error + Send + Sync + 'static, Global>;
Expand description

Convenience type alias for grouping driver-specific errors

+

Type Definition db_sqlx_postgres::dev::errors::BoxDynError

source · []
pub type BoxDynError = Box<dyn Error + Send + Sync + 'static, Global>;
Expand description

Convenience type alias for grouping driver-specific errors

\ No newline at end of file diff --git a/db_sqlx_postgres/dev/errors/type.DBResult.html b/db_sqlx_postgres/dev/errors/type.DBResult.html index d1530d28..f7626d69 100644 --- a/db_sqlx_postgres/dev/errors/type.DBResult.html +++ b/db_sqlx_postgres/dev/errors/type.DBResult.html @@ -4,6 +4,6 @@
pub type DBResult<V> = Result<V, DBError>;
Expand description

Generic result data structure

+

Type Definition db_sqlx_postgres::dev::errors::DBResult

source · []
pub type DBResult<V> = Result<V, DBError>;
Expand description

Generic result data structure

\ No newline at end of file diff --git a/db_sqlx_postgres/dev/ops/index.html b/db_sqlx_postgres/dev/ops/index.html index 9131440e..29cfbacd 100644 --- a/db_sqlx_postgres/dev/ops/index.html +++ b/db_sqlx_postgres/dev/ops/index.html @@ -4,7 +4,7 @@
Expand description

meta operations like migration and connecting to a database

+

Module db_sqlx_postgres::dev::ops

source · []
Expand description

meta operations like migration and connecting to a database

Traits

Create databse connection

Database operations trait(migrations, pool creation and fetching connection from pool)

diff --git a/db_sqlx_postgres/dev/ops/trait.Connect.html b/db_sqlx_postgres/dev/ops/trait.Connect.html index 948073db..a20403e2 100644 --- a/db_sqlx_postgres/dev/ops/trait.Connect.html +++ b/db_sqlx_postgres/dev/ops/trait.Connect.html @@ -4,12 +4,12 @@
pub trait Connect {
+    

Trait db_sqlx_postgres::dev::ops::Connect

source · []
pub trait Connect {
     type Pool: MCDatabase;
     fn connect<'async_trait>(
        self
    ) -> Pin<Box<dyn Future<Output = Result<Self::Pool, DBError>> + Send + 'async_trait, Global>>
    where
        Self: 'async_trait
; }
Expand description

Create databse connection

-

Associated Types

database specific pool-type

-

Required methods

database specific error-type +

Associated Types

database specific pool-type

+

Required methods

database specific error-type create connection pool

Implementors

\ No newline at end of file diff --git a/db_sqlx_postgres/dev/ops/trait.DBOps.html b/db_sqlx_postgres/dev/ops/trait.DBOps.html index 7bfa3941..e38b2e42 100644 --- a/db_sqlx_postgres/dev/ops/trait.DBOps.html +++ b/db_sqlx_postgres/dev/ops/trait.DBOps.html @@ -4,6 +4,6 @@
pub trait DBOps: GetConnection + Migrate { }
Expand description

Database operations trait(migrations, pool creation and fetching connection from pool)

+

Trait db_sqlx_postgres::dev::ops::DBOps

source · []
pub trait DBOps: GetConnection + Migrate { }
Expand description

Database operations trait(migrations, pool creation and fetching connection from pool)

Implementors

\ No newline at end of file diff --git a/db_sqlx_postgres/dev/ops/trait.GetConnection.html b/db_sqlx_postgres/dev/ops/trait.GetConnection.html index fa7ac05b..d07e4b63 100644 --- a/db_sqlx_postgres/dev/ops/trait.GetConnection.html +++ b/db_sqlx_postgres/dev/ops/trait.GetConnection.html @@ -4,12 +4,12 @@
pub trait GetConnection {
+    

Trait db_sqlx_postgres::dev::ops::GetConnection

source · []
pub trait GetConnection {
     type Conn;
     fn get_conn<'life0, 'async_trait>(
        &'life0 self
    ) -> Pin<Box<dyn Future<Output = Result<Self::Conn, DBError>> + Send + 'async_trait, Global>>
    where
        'life0: 'async_trait,
        Self: 'async_trait
; }
Expand description

Get database connection

-

Associated Types

database connection type

-

Required methods

database specific error-type +

Associated Types

database connection type

+

Required methods

database specific error-type get connection from connection pool

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 c4967727..f6829e14 100644 --- a/db_sqlx_postgres/dev/ops/trait.Migrate.html +++ b/db_sqlx_postgres/dev/ops/trait.Migrate.html @@ -4,10 +4,10 @@
pub trait Migrate: MCDatabase {
+    

Trait db_sqlx_postgres::dev::ops::Migrate

source · []
pub trait Migrate: MCDatabase {
     fn migrate<'life0, 'async_trait>(
        &'life0 self
    ) -> Pin<Box<dyn Future<Output = Result<(), DBError>> + Send + 'async_trait, Global>>
    where
        'life0: 'async_trait,
        Self: 'async_trait
; }
Expand description

database migrations

-

Required methods

database specific error-type +

Required methods

database specific error-type run migrations

Implementors

\ No newline at end of file diff --git a/db_sqlx_postgres/dev/prelude/dev/enum.DBError.html b/db_sqlx_postgres/dev/prelude/dev/enum.DBError.html index 43bcae32..c62f08b1 100644 --- a/db_sqlx_postgres/dev/prelude/dev/enum.DBError.html +++ b/db_sqlx_postgres/dev/prelude/dev/enum.DBError.html @@ -4,7 +4,7 @@
pub enum DBError {
+    

Enum db_sqlx_postgres::dev::prelude::dev::DBError

source · []
pub enum DBError {
     DBError(Box<dyn Error + Send + Sync + 'static, Global>),
     UsernameTaken,
     EmailTaken,
@@ -24,9 +24,9 @@
 

CaptchaNotFound

Captcha not found

TrafficPatternNotFound

Traffic pattern not found

NotificationNotFound

Notification not found

-

Trait Implementations

Formats the value using the given formatter. Read more

-

Formats the value using the given formatter. Read more

-

The lower-level source of this error, if any. Read more

+

Trait Implementations

Formats the value using the given formatter. Read more

+

Formats the value using the given formatter. Read more

+

The lower-level source of this error, if any. Read more

🔬 This is a nightly-only experimental API. (backtrace)

Returns a stack backtrace, if available, of where this error occurred. Read more

👎 Deprecated since 1.42.0:

use the Display impl or to_string()

👎 Deprecated since 1.33.0:

replaced by Error::source, which can support downcasting

diff --git a/db_sqlx_postgres/dev/prelude/dev/enum.Login.html b/db_sqlx_postgres/dev/prelude/dev/enum.Login.html index 948b9568..97af9930 100644 --- a/db_sqlx_postgres/dev/prelude/dev/enum.Login.html +++ b/db_sqlx_postgres/dev/prelude/dev/enum.Login.html @@ -4,21 +4,21 @@
pub enum Login<'a> {
+    

Enum db_sqlx_postgres::dev::prelude::dev::Login

source · []
pub enum Login<'a> {
     Username(&'a str),
     Email(&'a str),
 }
Expand description

types of credentials used as identifiers during login

Variants

Username(&'a str)

username as login

Email(&'a str)

email as login

-

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

-

Deserialize this value from the given Serde deserializer. Read more

-

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

Formats the value using the given formatter. Read more

+

Deserialize this value from the given Serde deserializer. Read more

+

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

-

This method tests for !=.

-

Serialize this value into the given Serde serializer. Read more

-

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

+

This method tests for !=.

+

Serialize this value into the given Serde serializer. Read more

+

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/prelude/dev/index.html b/db_sqlx_postgres/dev/prelude/dev/index.html index 595c262e..b1cdf456 100644 --- a/db_sqlx_postgres/dev/prelude/dev/index.html +++ b/db_sqlx_postgres/dev/prelude/dev/index.html @@ -4,7 +4,7 @@
Expand description

useful imports for supporting a new database

+

Module db_sqlx_postgres::dev::prelude::dev

source · []
Expand description

useful imports for supporting a new database

Structs

Data required to add notification

Data representing a captcha

diff --git a/db_sqlx_postgres/dev/prelude/dev/struct.AddNotification.html b/db_sqlx_postgres/dev/prelude/dev/struct.AddNotification.html index 51e4b4fa..402cf80a 100644 --- a/db_sqlx_postgres/dev/prelude/dev/struct.AddNotification.html +++ b/db_sqlx_postgres/dev/prelude/dev/struct.AddNotification.html @@ -4,7 +4,7 @@
pub struct AddNotification<'a> {
+    

Struct db_sqlx_postgres::dev::prelude::dev::AddNotification

source · []
pub struct AddNotification<'a> {
     pub to: &'a str,
     pub from: &'a str,
     pub heading: &'a str,
@@ -14,16 +14,16 @@
 
from: &'a str

notification sender

heading: &'a str

heading of the notification

message: &'a str

mesage 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

-

Deserialize this value from the given Serde deserializer. Read more

-

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

+

Deserialize this value from the given Serde deserializer. Read more

+

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

-

This method tests for !=.

-

Serialize this value into the given Serde serializer. Read more

-

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

+

This method tests for !=.

+

Serialize this value into the given Serde serializer. Read more

+

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/prelude/dev/struct.Captcha.html b/db_sqlx_postgres/dev/prelude/dev/struct.Captcha.html index 5792ac43..1e0c7469 100644 --- a/db_sqlx_postgres/dev/prelude/dev/struct.Captcha.html +++ b/db_sqlx_postgres/dev/prelude/dev/struct.Captcha.html @@ -4,7 +4,7 @@
pub struct Captcha {
+    

Struct db_sqlx_postgres::dev::prelude::dev::Captcha

source · []
pub struct Captcha {
     pub config_id: i32,
     pub duration: i32,
     pub description: String,
@@ -14,16 +14,16 @@
 
duration: i32

cool down duration

description: String

description of the captcha

key: String

secret key of the captcha

-

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

-

Deserialize this value from the given Serde deserializer. Read more

-

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

+

Deserialize this value from the given Serde deserializer. Read more

+

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

-

This method tests for !=.

-

Serialize this value into the given Serde serializer. Read more

-

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

+

This method tests for !=.

+

Serialize this value into the given Serde serializer. Read more

+

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/prelude/dev/struct.CreateCaptcha.html b/db_sqlx_postgres/dev/prelude/dev/struct.CreateCaptcha.html index 36c2efd6..efd099c8 100644 --- a/db_sqlx_postgres/dev/prelude/dev/struct.CreateCaptcha.html +++ b/db_sqlx_postgres/dev/prelude/dev/struct.CreateCaptcha.html @@ -4,7 +4,7 @@
pub struct CreateCaptcha<'a> {
+    

Struct db_sqlx_postgres::dev::prelude::dev::CreateCaptcha

source · []
pub struct CreateCaptcha<'a> {
     pub duration: i32,
     pub description: &'a str,
     pub key: &'a str,
@@ -12,16 +12,16 @@
 

Fields

duration: i32

cool down duration

description: &'a str

description of the captcha

key: &'a str

secret key of the captcha

-

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

-

Deserialize this value from the given Serde deserializer. Read more

-

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

+

Deserialize this value from the given Serde deserializer. Read more

+

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

-

This method tests for !=.

-

Serialize this value into the given Serde serializer. Read more

-

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

+

This method tests for !=.

+

Serialize this value into the given Serde serializer. Read more

+

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/prelude/dev/struct.NameHash.html b/db_sqlx_postgres/dev/prelude/dev/struct.NameHash.html index c2821473..b6ab2191 100644 --- a/db_sqlx_postgres/dev/prelude/dev/struct.NameHash.html +++ b/db_sqlx_postgres/dev/prelude/dev/struct.NameHash.html @@ -4,21 +4,21 @@
pub struct NameHash {
+    

Struct db_sqlx_postgres::dev::prelude::dev::NameHash

source · []
pub struct NameHash {
     pub username: String,
     pub hash: String,
 }
Expand description

type encapsulating username and hashed password of a user

Fields

username: String

username

hash: String

hashed password

-

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

-

Deserialize this value from the given Serde deserializer. Read more

-

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

Formats the value using the given formatter. Read more

+

Deserialize this value from the given Serde deserializer. Read more

+

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

-

This method tests for !=.

-

Serialize this value into the given Serde serializer. Read more

-

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

+

This method tests for !=.

+

Serialize this value into the given Serde serializer. Read more

+

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/prelude/dev/struct.Notification.html b/db_sqlx_postgres/dev/prelude/dev/struct.Notification.html index f5603052..6e8f3751 100644 --- a/db_sqlx_postgres/dev/prelude/dev/struct.Notification.html +++ b/db_sqlx_postgres/dev/prelude/dev/struct.Notification.html @@ -4,7 +4,7 @@
pub struct Notification {
+    

Struct db_sqlx_postgres::dev::prelude::dev::Notification

source · []
pub struct Notification {
     pub name: Option<String>,
     pub heading: Option<String>,
     pub message: Option<String>,
@@ -16,17 +16,17 @@
 
message: Option<String>

message of the notification

received: Option<i64>

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

-

Deserialize this value from the given Serde deserializer. Read more

+

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.

-

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

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

-

This method tests for !=.

-

Serialize this value into the given Serde serializer. Read more

-

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

+

This method tests for !=.

+

Serialize this value into the given Serde serializer. Read more

+

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/prelude/dev/struct.Register.html b/db_sqlx_postgres/dev/prelude/dev/struct.Register.html index bf6e3e1d..a448f8d0 100644 --- a/db_sqlx_postgres/dev/prelude/dev/struct.Register.html +++ b/db_sqlx_postgres/dev/prelude/dev/struct.Register.html @@ -4,7 +4,7 @@
pub struct Register<'a> {
+    

Struct db_sqlx_postgres::dev::prelude::dev::Register

source · []
pub struct Register<'a> {
     pub username: &'a str,
     pub secret: &'a str,
     pub hash: &'a str,
@@ -14,15 +14,15 @@
 
secret: &'a str

secret of new user

hash: &'a str

hashed password of new use

email: Option<&'a str>

Optionally, email of new use

-

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

-

Deserialize this value from the given Serde deserializer. Read more

-

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

Formats the value using the given formatter. Read more

+

Deserialize this value from the given Serde deserializer. Read more

+

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

-

This method tests for !=.

-

Serialize this value into the given Serde serializer. Read more

-

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

+

This method tests for !=.

+

Serialize this value into the given Serde serializer. Read more

+

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/prelude/dev/struct.Secret.html b/db_sqlx_postgres/dev/prelude/dev/struct.Secret.html index 6edc18d9..091dd744 100644 --- a/db_sqlx_postgres/dev/prelude/dev/struct.Secret.html +++ b/db_sqlx_postgres/dev/prelude/dev/struct.Secret.html @@ -4,20 +4,20 @@
pub struct Secret {
+    

Struct db_sqlx_postgres::dev::prelude::dev::Secret

source · []
pub struct Secret {
     pub secret: String,
 }
Expand description

datastructure representing a user’s secret

Fields

secret: String

user’s secret

-

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

-

Deserialize this value from the given Serde deserializer. Read more

-

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

+

Deserialize this value from the given Serde deserializer. Read more

+

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

-

This method tests for !=.

-

Serialize this value into the given Serde serializer. Read more

-

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

+

This method tests for !=.

+

Serialize this value into the given Serde serializer. Read more

+

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/prelude/dev/struct.StatsUnixTimestamp.html b/db_sqlx_postgres/dev/prelude/dev/struct.StatsUnixTimestamp.html index d3754e13..9fc611c1 100644 --- a/db_sqlx_postgres/dev/prelude/dev/struct.StatsUnixTimestamp.html +++ b/db_sqlx_postgres/dev/prelude/dev/struct.StatsUnixTimestamp.html @@ -4,7 +4,7 @@
pub struct StatsUnixTimestamp {
+    

Struct db_sqlx_postgres::dev::prelude::dev::StatsUnixTimestamp

source · []
pub struct StatsUnixTimestamp {
     pub config_fetches: Vec<i64, Global>,
     pub solves: Vec<i64, Global>,
     pub confirms: Vec<i64, Global>,
@@ -12,16 +12,16 @@
 

Fields

config_fetches: Vec<i64, Global>

times at which the configuration were fetched

solves: Vec<i64, Global>

times at which the PoW was solved

confirms: Vec<i64, Global>

times at which the PoW token was verified

-

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

-

Deserialize this value from the given Serde deserializer. Read more

-

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

+

Deserialize this value from the given Serde deserializer. Read more

+

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

-

This method tests for !=.

-

Serialize this value into the given Serde serializer. Read more

-

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

+

This method tests for !=.

+

Serialize this value into the given Serde serializer. Read more

+

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/prelude/dev/struct.TrafficPattern.html b/db_sqlx_postgres/dev/prelude/dev/struct.TrafficPattern.html index 25a65d08..faf36bb5 100644 --- a/db_sqlx_postgres/dev/prelude/dev/struct.TrafficPattern.html +++ b/db_sqlx_postgres/dev/prelude/dev/struct.TrafficPattern.html @@ -4,7 +4,7 @@
pub struct TrafficPattern {
+    

Struct db_sqlx_postgres::dev::prelude::dev::TrafficPattern

source · []
pub struct TrafficPattern {
     pub avg_traffic: u32,
     pub peak_sustainable_traffic: u32,
     pub broke_my_site_traffic: Option<u32>,
@@ -12,16 +12,16 @@
 

Fields

avg_traffic: u32

average traffic of user’s website

peak_sustainable_traffic: u32

the peak traffic that the user’s website can handle

broke_my_site_traffic: Option<u32>

trafic that bought the user’s website down; optional

-

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

-

Deserialize this value from the given Serde deserializer. Read more

-

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

+

Deserialize this value from the given Serde deserializer. Read more

+

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

-

This method tests for !=.

-

Serialize this value into the given Serde serializer. Read more

-

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

+

This method tests for !=.

+

Serialize this value into the given Serde serializer. Read more

+

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/prelude/dev/struct.UpdateEmail.html b/db_sqlx_postgres/dev/prelude/dev/struct.UpdateEmail.html index 1e8daee6..75aad361 100644 --- a/db_sqlx_postgres/dev/prelude/dev/struct.UpdateEmail.html +++ b/db_sqlx_postgres/dev/prelude/dev/struct.UpdateEmail.html @@ -4,21 +4,21 @@
pub struct UpdateEmail<'a> {
+    

Struct db_sqlx_postgres::dev::prelude::dev::UpdateEmail

source · []
pub struct UpdateEmail<'a> {
     pub username: &'a str,
     pub new_email: &'a str,
 }
Expand description

data required to update them email of a user

Fields

username: &'a str

username of the user

new_email: &'a str

new email address of the user

-

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

-

Deserialize this value from the given Serde deserializer. Read more

-

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

Formats the value using the given formatter. Read more

+

Deserialize this value from the given Serde deserializer. Read more

+

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

-

This method tests for !=.

-

Serialize this value into the given Serde serializer. Read more

-

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

+

This method tests for !=.

+

Serialize this value into the given Serde serializer. Read more

+

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/prelude/dev/trait.CloneSPDatabase.html b/db_sqlx_postgres/dev/prelude/dev/trait.CloneSPDatabase.html index ee34c1d1..68767bb1 100644 --- a/db_sqlx_postgres/dev/prelude/dev/trait.CloneSPDatabase.html +++ b/db_sqlx_postgres/dev/prelude/dev/trait.CloneSPDatabase.html @@ -4,9 +4,9 @@
pub trait CloneSPDatabase {
+    

Trait db_sqlx_postgres::dev::prelude::dev::CloneSPDatabase

source · []
pub trait CloneSPDatabase {
     fn clone_db(&self) -> Box<dyn MCDatabase + 'static, Global>;
 }
Expand description

Trait to clone MCDatabase

-

Required methods

clone DB

-

Implementors

+

Required methods

clone DB

+

Implementors

\ No newline at end of file diff --git a/db_sqlx_postgres/dev/prelude/dev/trait.Connect.html b/db_sqlx_postgres/dev/prelude/dev/trait.Connect.html index ea803a55..8a3b472d 100644 --- a/db_sqlx_postgres/dev/prelude/dev/trait.Connect.html +++ b/db_sqlx_postgres/dev/prelude/dev/trait.Connect.html @@ -4,12 +4,12 @@
pub trait Connect {
+    

Trait db_sqlx_postgres::dev::prelude::dev::Connect

source · []
pub trait Connect {
     type Pool: MCDatabase;
     fn connect<'async_trait>(
        self
    ) -> Pin<Box<dyn Future<Output = Result<Self::Pool, DBError>> + Send + 'async_trait, Global>>
    where
        Self: 'async_trait
; }
Expand description

Create databse connection

-

Associated Types

database specific pool-type

-

Required methods

database specific error-type +

Associated Types

database specific pool-type

+

Required methods

database specific error-type create connection pool

Implementors

\ No newline at end of file diff --git a/db_sqlx_postgres/dev/prelude/dev/trait.DBOps.html b/db_sqlx_postgres/dev/prelude/dev/trait.DBOps.html index 349eeba5..38b27dc2 100644 --- a/db_sqlx_postgres/dev/prelude/dev/trait.DBOps.html +++ b/db_sqlx_postgres/dev/prelude/dev/trait.DBOps.html @@ -4,6 +4,6 @@
pub trait DBOps: GetConnection + Migrate { }
Expand description

Database operations trait(migrations, pool creation and fetching connection from pool)

+

Trait db_sqlx_postgres::dev::prelude::dev::DBOps

source · []
pub trait DBOps: GetConnection + Migrate { }
Expand description

Database operations trait(migrations, pool creation and fetching connection from pool)

Implementors

\ No newline at end of file diff --git a/db_sqlx_postgres/dev/prelude/dev/trait.GetConnection.html b/db_sqlx_postgres/dev/prelude/dev/trait.GetConnection.html index a653f69b..d2872064 100644 --- a/db_sqlx_postgres/dev/prelude/dev/trait.GetConnection.html +++ b/db_sqlx_postgres/dev/prelude/dev/trait.GetConnection.html @@ -4,12 +4,12 @@
pub trait GetConnection {
+    

Trait db_sqlx_postgres::dev::prelude::dev::GetConnection

source · []
pub trait GetConnection {
     type Conn;
     fn get_conn<'life0, 'async_trait>(
        &'life0 self
    ) -> Pin<Box<dyn Future<Output = Result<Self::Conn, DBError>> + Send + 'async_trait, Global>>
    where
        'life0: 'async_trait,
        Self: 'async_trait
; }
Expand description

Get database connection

-

Associated Types

database connection type

-

Required methods

database specific error-type +

Associated Types

database connection type

+

Required methods

database specific error-type get connection from connection pool

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 f069c55f..d5a89891 100644 --- a/db_sqlx_postgres/dev/prelude/dev/trait.MCDatabase.html +++ b/db_sqlx_postgres/dev/prelude/dev/trait.MCDatabase.html @@ -4,7 +4,7 @@
pub trait MCDatabase: Send + Sync + CloneSPDatabase {
+    

Trait db_sqlx_postgres::dev::prelude::dev::MCDatabase

source · []
pub trait MCDatabase: Send + Sync + CloneSPDatabase {
 
Show 35 methods fn ping<'life0, 'async_trait>(
        &'life0 self
    ) -> Pin<Box<dyn Future<Output = bool> + Send + 'async_trait, Global>>
    where
        'life0: 'async_trait,
        Self: 'async_trait
; fn register<'life0, 'life1, 'async_trait>(
        &'life0 self,
        p: &'life1 Register<'_>
    ) -> Pin<Box<dyn Future<Output = Result<(), DBError>> + Send + 'async_trait, Global>>
    where
        'life0: 'async_trait,
        'life1: 'async_trait,
        Self: 'async_trait
; fn delete_user<'life0, 'life1, 'async_trait>(
        &'life0 self,
        username: &'life1 str
    ) -> Pin<Box<dyn Future<Output = Result<(), DBError>> + Send + 'async_trait, Global>>
    where
        'life0: 'async_trait,
        'life1: 'async_trait,
        Self: 'async_trait
; @@ -42,40 +42,40 @@ fn fetch_confirm<'life0, 'life1, 'life2, 'async_trait>(
        &'life0 self,
        user: &'life1 str,
        key: &'life2 str
    ) -> Pin<Box<dyn Future<Output = Result<Vec<i64, Global>, DBError>> + Send + 'async_trait, Global>>
    where
        'life0: 'async_trait,
        'life1: 'async_trait,
        'life2: 'async_trait,
        Self: 'async_trait
;
}
Expand description

mCaptcha’s database requirements. To implement support for $Database, kindly implement this trait.

-

Required methods

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

-

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

-

featch PoWConfig fetches

-

featch PoWConfig solves

-

featch PoWConfig confirms

+

Required methods

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

+

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

+

featch PoWConfig fetches

+

featch PoWConfig solves

+

featch PoWConfig confirms

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 bc223f22..d65837d2 100644 --- a/db_sqlx_postgres/dev/prelude/dev/trait.Migrate.html +++ b/db_sqlx_postgres/dev/prelude/dev/trait.Migrate.html @@ -4,10 +4,10 @@
pub trait Migrate: MCDatabase {
+    

Trait db_sqlx_postgres::dev::prelude::dev::Migrate

source · []
pub trait Migrate: MCDatabase {
     fn migrate<'life0, 'async_trait>(
        &'life0 self
    ) -> Pin<Box<dyn Future<Output = Result<(), DBError>> + Send + 'async_trait, Global>>
    where
        'life0: 'async_trait,
        Self: 'async_trait
; }
Expand description

database migrations

-

Required methods

database specific error-type +

Required methods

database specific error-type run migrations

Implementors

\ No newline at end of file diff --git a/db_sqlx_postgres/dev/prelude/dev/type.BoxDynError.html b/db_sqlx_postgres/dev/prelude/dev/type.BoxDynError.html index ab411d6a..9c2f49fd 100644 --- a/db_sqlx_postgres/dev/prelude/dev/type.BoxDynError.html +++ b/db_sqlx_postgres/dev/prelude/dev/type.BoxDynError.html @@ -4,6 +4,6 @@
pub type BoxDynError = Box<dyn Error + Send + Sync + 'static, Global>;
Expand description

Convenience type alias for grouping driver-specific errors

+

Type Definition db_sqlx_postgres::dev::prelude::dev::BoxDynError

source · []
pub type BoxDynError = Box<dyn Error + Send + Sync + 'static, Global>;
Expand description

Convenience type alias for grouping driver-specific errors

\ No newline at end of file diff --git a/db_sqlx_postgres/dev/prelude/dev/type.DBResult.html b/db_sqlx_postgres/dev/prelude/dev/type.DBResult.html index 902b2bea..abf3efd6 100644 --- a/db_sqlx_postgres/dev/prelude/dev/type.DBResult.html +++ b/db_sqlx_postgres/dev/prelude/dev/type.DBResult.html @@ -4,6 +4,6 @@
pub type DBResult<V> = Result<V, DBError>;
Expand description

Generic result data structure

+

Type Definition db_sqlx_postgres::dev::prelude::dev::DBResult

source · []
pub type DBResult<V> = Result<V, DBError>;
Expand description

Generic result data structure

\ No newline at end of file diff --git a/db_sqlx_postgres/dev/prelude/enum.DBError.html b/db_sqlx_postgres/dev/prelude/enum.DBError.html index c51e3bff..25e8f3b3 100644 --- a/db_sqlx_postgres/dev/prelude/enum.DBError.html +++ b/db_sqlx_postgres/dev/prelude/enum.DBError.html @@ -4,7 +4,7 @@
pub enum DBError {
+    

Enum db_sqlx_postgres::dev::prelude::DBError

source · []
pub enum DBError {
     DBError(Box<dyn Error + Send + Sync + 'static, Global>),
     UsernameTaken,
     EmailTaken,
@@ -24,9 +24,9 @@
 

CaptchaNotFound

Captcha not found

TrafficPatternNotFound

Traffic pattern not found

NotificationNotFound

Notification not found

-

Trait Implementations

Formats the value using the given formatter. Read more

-

Formats the value using the given formatter. Read more

-

The lower-level source of this error, if any. Read more

+

Trait Implementations

Formats the value using the given formatter. Read more

+

Formats the value using the given formatter. Read more

+

The lower-level source of this error, if any. Read more

🔬 This is a nightly-only experimental API. (backtrace)

Returns a stack backtrace, if available, of where this error occurred. Read more

👎 Deprecated since 1.42.0:

use the Display impl or to_string()

👎 Deprecated since 1.33.0:

replaced by Error::source, which can support downcasting

diff --git a/db_sqlx_postgres/dev/prelude/enum.Login.html b/db_sqlx_postgres/dev/prelude/enum.Login.html index 4f1299ee..add6666a 100644 --- a/db_sqlx_postgres/dev/prelude/enum.Login.html +++ b/db_sqlx_postgres/dev/prelude/enum.Login.html @@ -4,21 +4,21 @@
pub enum Login<'a> {
+    

Enum db_sqlx_postgres::dev::prelude::Login

source · []
pub enum Login<'a> {
     Username(&'a str),
     Email(&'a str),
 }
Expand description

types of credentials used as identifiers during login

Variants

Username(&'a str)

username as login

Email(&'a str)

email as login

-

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

-

Deserialize this value from the given Serde deserializer. Read more

-

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

Formats the value using the given formatter. Read more

+

Deserialize this value from the given Serde deserializer. Read more

+

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

-

This method tests for !=.

-

Serialize this value into the given Serde serializer. Read more

-

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

+

This method tests for !=.

+

Serialize this value into the given Serde serializer. Read more

+

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/prelude/index.html b/db_sqlx_postgres/dev/prelude/index.html index ac80368b..9eee0aec 100644 --- a/db_sqlx_postgres/dev/prelude/index.html +++ b/db_sqlx_postgres/dev/prelude/index.html @@ -4,7 +4,7 @@
Expand description

useful imports for users working with a supported database

+

Module db_sqlx_postgres::dev::prelude

source · []
Expand description

useful imports for users working with a supported database

Modules

useful imports for supporting a new database

Structs

diff --git a/db_sqlx_postgres/dev/prelude/struct.AddNotification.html b/db_sqlx_postgres/dev/prelude/struct.AddNotification.html index 369c091d..0d5a94d7 100644 --- a/db_sqlx_postgres/dev/prelude/struct.AddNotification.html +++ b/db_sqlx_postgres/dev/prelude/struct.AddNotification.html @@ -4,7 +4,7 @@
pub struct AddNotification<'a> {
+    

Struct db_sqlx_postgres::dev::prelude::AddNotification

source · []
pub struct AddNotification<'a> {
     pub to: &'a str,
     pub from: &'a str,
     pub heading: &'a str,
@@ -14,16 +14,16 @@
 
from: &'a str

notification sender

heading: &'a str

heading of the notification

message: &'a str

mesage 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

-

Deserialize this value from the given Serde deserializer. Read more

-

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

+

Deserialize this value from the given Serde deserializer. Read more

+

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

-

This method tests for !=.

-

Serialize this value into the given Serde serializer. Read more

-

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

+

This method tests for !=.

+

Serialize this value into the given Serde serializer. Read more

+

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/prelude/struct.Captcha.html b/db_sqlx_postgres/dev/prelude/struct.Captcha.html index a9227480..1c75b7b9 100644 --- a/db_sqlx_postgres/dev/prelude/struct.Captcha.html +++ b/db_sqlx_postgres/dev/prelude/struct.Captcha.html @@ -4,7 +4,7 @@
pub struct Captcha {
+    

Struct db_sqlx_postgres::dev::prelude::Captcha

source · []
pub struct Captcha {
     pub config_id: i32,
     pub duration: i32,
     pub description: String,
@@ -14,16 +14,16 @@
 
duration: i32

cool down duration

description: String

description of the captcha

key: String

secret key of the captcha

-

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

-

Deserialize this value from the given Serde deserializer. Read more

-

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

+

Deserialize this value from the given Serde deserializer. Read more

+

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

-

This method tests for !=.

-

Serialize this value into the given Serde serializer. Read more

-

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

+

This method tests for !=.

+

Serialize this value into the given Serde serializer. Read more

+

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/prelude/struct.CreateCaptcha.html b/db_sqlx_postgres/dev/prelude/struct.CreateCaptcha.html index c0b46a68..32b04ef7 100644 --- a/db_sqlx_postgres/dev/prelude/struct.CreateCaptcha.html +++ b/db_sqlx_postgres/dev/prelude/struct.CreateCaptcha.html @@ -4,7 +4,7 @@
pub struct CreateCaptcha<'a> {
+    

Struct db_sqlx_postgres::dev::prelude::CreateCaptcha

source · []
pub struct CreateCaptcha<'a> {
     pub duration: i32,
     pub description: &'a str,
     pub key: &'a str,
@@ -12,16 +12,16 @@
 

Fields

duration: i32

cool down duration

description: &'a str

description of the captcha

key: &'a str

secret key of the captcha

-

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

-

Deserialize this value from the given Serde deserializer. Read more

-

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

+

Deserialize this value from the given Serde deserializer. Read more

+

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

-

This method tests for !=.

-

Serialize this value into the given Serde serializer. Read more

-

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

+

This method tests for !=.

+

Serialize this value into the given Serde serializer. Read more

+

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/prelude/struct.NameHash.html b/db_sqlx_postgres/dev/prelude/struct.NameHash.html index 0bb79f0e..4f786c1d 100644 --- a/db_sqlx_postgres/dev/prelude/struct.NameHash.html +++ b/db_sqlx_postgres/dev/prelude/struct.NameHash.html @@ -4,21 +4,21 @@
pub struct NameHash {
+    

Struct db_sqlx_postgres::dev::prelude::NameHash

source · []
pub struct NameHash {
     pub username: String,
     pub hash: String,
 }
Expand description

type encapsulating username and hashed password of a user

Fields

username: String

username

hash: String

hashed password

-

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

-

Deserialize this value from the given Serde deserializer. Read more

-

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

Formats the value using the given formatter. Read more

+

Deserialize this value from the given Serde deserializer. Read more

+

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

-

This method tests for !=.

-

Serialize this value into the given Serde serializer. Read more

-

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

+

This method tests for !=.

+

Serialize this value into the given Serde serializer. Read more

+

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/prelude/struct.Notification.html b/db_sqlx_postgres/dev/prelude/struct.Notification.html index e456670d..2e7fed48 100644 --- a/db_sqlx_postgres/dev/prelude/struct.Notification.html +++ b/db_sqlx_postgres/dev/prelude/struct.Notification.html @@ -4,7 +4,7 @@
pub struct Notification {
+    

Struct db_sqlx_postgres::dev::prelude::Notification

source · []
pub struct Notification {
     pub name: Option<String>,
     pub heading: Option<String>,
     pub message: Option<String>,
@@ -16,17 +16,17 @@
 
message: Option<String>

message of the notification

received: Option<i64>

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

-

Deserialize this value from the given Serde deserializer. Read more

+

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.

-

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

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

-

This method tests for !=.

-

Serialize this value into the given Serde serializer. Read more

-

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

+

This method tests for !=.

+

Serialize this value into the given Serde serializer. Read more

+

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/prelude/struct.Register.html b/db_sqlx_postgres/dev/prelude/struct.Register.html index bf2f1a1e..0a62d2e2 100644 --- a/db_sqlx_postgres/dev/prelude/struct.Register.html +++ b/db_sqlx_postgres/dev/prelude/struct.Register.html @@ -4,7 +4,7 @@
pub struct Register<'a> {
+    

Struct db_sqlx_postgres::dev::prelude::Register

source · []
pub struct Register<'a> {
     pub username: &'a str,
     pub secret: &'a str,
     pub hash: &'a str,
@@ -14,15 +14,15 @@
 
secret: &'a str

secret of new user

hash: &'a str

hashed password of new use

email: Option<&'a str>

Optionally, email of new use

-

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

-

Deserialize this value from the given Serde deserializer. Read more

-

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

Formats the value using the given formatter. Read more

+

Deserialize this value from the given Serde deserializer. Read more

+

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

-

This method tests for !=.

-

Serialize this value into the given Serde serializer. Read more

-

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

+

This method tests for !=.

+

Serialize this value into the given Serde serializer. Read more

+

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/prelude/struct.Secret.html b/db_sqlx_postgres/dev/prelude/struct.Secret.html index dc63eb77..e20c6825 100644 --- a/db_sqlx_postgres/dev/prelude/struct.Secret.html +++ b/db_sqlx_postgres/dev/prelude/struct.Secret.html @@ -4,20 +4,20 @@
pub struct Secret {
+    

Struct db_sqlx_postgres::dev::prelude::Secret

source · []
pub struct Secret {
     pub secret: String,
 }
Expand description

datastructure representing a user’s secret

Fields

secret: String

user’s secret

-

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

-

Deserialize this value from the given Serde deserializer. Read more

-

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

+

Deserialize this value from the given Serde deserializer. Read more

+

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

-

This method tests for !=.

-

Serialize this value into the given Serde serializer. Read more

-

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

+

This method tests for !=.

+

Serialize this value into the given Serde serializer. Read more

+

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/prelude/struct.StatsUnixTimestamp.html b/db_sqlx_postgres/dev/prelude/struct.StatsUnixTimestamp.html index e60e89e5..73c872f4 100644 --- a/db_sqlx_postgres/dev/prelude/struct.StatsUnixTimestamp.html +++ b/db_sqlx_postgres/dev/prelude/struct.StatsUnixTimestamp.html @@ -4,7 +4,7 @@
pub struct StatsUnixTimestamp {
+    

Struct db_sqlx_postgres::dev::prelude::StatsUnixTimestamp

source · []
pub struct StatsUnixTimestamp {
     pub config_fetches: Vec<i64, Global>,
     pub solves: Vec<i64, Global>,
     pub confirms: Vec<i64, Global>,
@@ -12,16 +12,16 @@
 

Fields

config_fetches: Vec<i64, Global>

times at which the configuration were fetched

solves: Vec<i64, Global>

times at which the PoW was solved

confirms: Vec<i64, Global>

times at which the PoW token was verified

-

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

-

Deserialize this value from the given Serde deserializer. Read more

-

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

+

Deserialize this value from the given Serde deserializer. Read more

+

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

-

This method tests for !=.

-

Serialize this value into the given Serde serializer. Read more

-

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

+

This method tests for !=.

+

Serialize this value into the given Serde serializer. Read more

+

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/prelude/struct.TrafficPattern.html b/db_sqlx_postgres/dev/prelude/struct.TrafficPattern.html index b92b368a..5a81069a 100644 --- a/db_sqlx_postgres/dev/prelude/struct.TrafficPattern.html +++ b/db_sqlx_postgres/dev/prelude/struct.TrafficPattern.html @@ -4,7 +4,7 @@
pub struct TrafficPattern {
+    

Struct db_sqlx_postgres::dev::prelude::TrafficPattern

source · []
pub struct TrafficPattern {
     pub avg_traffic: u32,
     pub peak_sustainable_traffic: u32,
     pub broke_my_site_traffic: Option<u32>,
@@ -12,16 +12,16 @@
 

Fields

avg_traffic: u32

average traffic of user’s website

peak_sustainable_traffic: u32

the peak traffic that the user’s website can handle

broke_my_site_traffic: Option<u32>

trafic that bought the user’s website down; optional

-

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

-

Deserialize this value from the given Serde deserializer. Read more

-

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

+

Deserialize this value from the given Serde deserializer. Read more

+

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

-

This method tests for !=.

-

Serialize this value into the given Serde serializer. Read more

-

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

+

This method tests for !=.

+

Serialize this value into the given Serde serializer. Read more

+

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/prelude/struct.UpdateEmail.html b/db_sqlx_postgres/dev/prelude/struct.UpdateEmail.html index b17369b4..8b9b71c6 100644 --- a/db_sqlx_postgres/dev/prelude/struct.UpdateEmail.html +++ b/db_sqlx_postgres/dev/prelude/struct.UpdateEmail.html @@ -4,21 +4,21 @@
pub struct UpdateEmail<'a> {
+    

Struct db_sqlx_postgres::dev::prelude::UpdateEmail

source · []
pub struct UpdateEmail<'a> {
     pub username: &'a str,
     pub new_email: &'a str,
 }
Expand description

data required to update them email of a user

Fields

username: &'a str

username of the user

new_email: &'a str

new email address of the user

-

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

-

Deserialize this value from the given Serde deserializer. Read more

-

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

Formats the value using the given formatter. Read more

+

Deserialize this value from the given Serde deserializer. Read more

+

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

-

This method tests for !=.

-

Serialize this value into the given Serde serializer. Read more

-

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

+

This method tests for !=.

+

Serialize this value into the given Serde serializer. Read more

+

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/prelude/trait.CloneSPDatabase.html b/db_sqlx_postgres/dev/prelude/trait.CloneSPDatabase.html index 74e6ab8a..cb559506 100644 --- a/db_sqlx_postgres/dev/prelude/trait.CloneSPDatabase.html +++ b/db_sqlx_postgres/dev/prelude/trait.CloneSPDatabase.html @@ -4,9 +4,9 @@
pub trait CloneSPDatabase {
+    

Trait db_sqlx_postgres::dev::prelude::CloneSPDatabase

source · []
pub trait CloneSPDatabase {
     fn clone_db(&self) -> Box<dyn MCDatabase + 'static, Global>;
 }
Expand description

Trait to clone MCDatabase

-

Required methods

clone DB

-

Implementors

+

Required methods

clone DB

+

Implementors

\ No newline at end of file diff --git a/db_sqlx_postgres/dev/prelude/trait.Connect.html b/db_sqlx_postgres/dev/prelude/trait.Connect.html index 259be5df..96497b76 100644 --- a/db_sqlx_postgres/dev/prelude/trait.Connect.html +++ b/db_sqlx_postgres/dev/prelude/trait.Connect.html @@ -4,12 +4,12 @@
pub trait Connect {
+    

Trait db_sqlx_postgres::dev::prelude::Connect

source · []
pub trait Connect {
     type Pool: MCDatabase;
     fn connect<'async_trait>(
        self
    ) -> Pin<Box<dyn Future<Output = Result<Self::Pool, DBError>> + Send + 'async_trait, Global>>
    where
        Self: 'async_trait
; }
Expand description

Create databse connection

-

Associated Types

database specific pool-type

-

Required methods

database specific error-type +

Associated Types

database specific pool-type

+

Required methods

database specific error-type create connection pool

Implementors

\ No newline at end of file diff --git a/db_sqlx_postgres/dev/prelude/trait.DBOps.html b/db_sqlx_postgres/dev/prelude/trait.DBOps.html index 0172e3f3..3e75202d 100644 --- a/db_sqlx_postgres/dev/prelude/trait.DBOps.html +++ b/db_sqlx_postgres/dev/prelude/trait.DBOps.html @@ -4,6 +4,6 @@
pub trait DBOps: GetConnection + Migrate { }
Expand description

Database operations trait(migrations, pool creation and fetching connection from pool)

+

Trait db_sqlx_postgres::dev::prelude::DBOps

source · []
pub trait DBOps: GetConnection + Migrate { }
Expand description

Database operations trait(migrations, pool creation and fetching connection from pool)

Implementors

\ No newline at end of file diff --git a/db_sqlx_postgres/dev/prelude/trait.GetConnection.html b/db_sqlx_postgres/dev/prelude/trait.GetConnection.html index f4201f81..33159835 100644 --- a/db_sqlx_postgres/dev/prelude/trait.GetConnection.html +++ b/db_sqlx_postgres/dev/prelude/trait.GetConnection.html @@ -4,12 +4,12 @@
pub trait GetConnection {
+    

Trait db_sqlx_postgres::dev::prelude::GetConnection

source · []
pub trait GetConnection {
     type Conn;
     fn get_conn<'life0, 'async_trait>(
        &'life0 self
    ) -> Pin<Box<dyn Future<Output = Result<Self::Conn, DBError>> + Send + 'async_trait, Global>>
    where
        'life0: 'async_trait,
        Self: 'async_trait
; }
Expand description

Get database connection

-

Associated Types

database connection type

-

Required methods

database specific error-type +

Associated Types

database connection type

+

Required methods

database specific error-type get connection from connection pool

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 6a173dd4..fee67e54 100644 --- a/db_sqlx_postgres/dev/prelude/trait.MCDatabase.html +++ b/db_sqlx_postgres/dev/prelude/trait.MCDatabase.html @@ -4,7 +4,7 @@
pub trait MCDatabase: Send + Sync + CloneSPDatabase {
+    

Trait db_sqlx_postgres::dev::prelude::MCDatabase

source · []
pub trait MCDatabase: Send + Sync + CloneSPDatabase {
 
Show 35 methods fn ping<'life0, 'async_trait>(
        &'life0 self
    ) -> Pin<Box<dyn Future<Output = bool> + Send + 'async_trait, Global>>
    where
        'life0: 'async_trait,
        Self: 'async_trait
; fn register<'life0, 'life1, 'async_trait>(
        &'life0 self,
        p: &'life1 Register<'_>
    ) -> Pin<Box<dyn Future<Output = Result<(), DBError>> + Send + 'async_trait, Global>>
    where
        'life0: 'async_trait,
        'life1: 'async_trait,
        Self: 'async_trait
; fn delete_user<'life0, 'life1, 'async_trait>(
        &'life0 self,
        username: &'life1 str
    ) -> Pin<Box<dyn Future<Output = Result<(), DBError>> + Send + 'async_trait, Global>>
    where
        'life0: 'async_trait,
        'life1: 'async_trait,
        Self: 'async_trait
; @@ -42,40 +42,40 @@ fn fetch_confirm<'life0, 'life1, 'life2, 'async_trait>(
        &'life0 self,
        user: &'life1 str,
        key: &'life2 str
    ) -> Pin<Box<dyn Future<Output = Result<Vec<i64, Global>, DBError>> + Send + 'async_trait, Global>>
    where
        'life0: 'async_trait,
        'life1: 'async_trait,
        'life2: 'async_trait,
        Self: 'async_trait
;
}
Expand description

mCaptcha’s database requirements. To implement support for $Database, kindly implement this trait.

-

Required methods

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

-

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

-

featch PoWConfig fetches

-

featch PoWConfig solves

-

featch PoWConfig confirms

+

Required methods

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

+

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

+

featch PoWConfig fetches

+

featch PoWConfig solves

+

featch PoWConfig confirms

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 31b70631..0af30bfa 100644 --- a/db_sqlx_postgres/dev/prelude/trait.Migrate.html +++ b/db_sqlx_postgres/dev/prelude/trait.Migrate.html @@ -4,10 +4,10 @@
pub trait Migrate: MCDatabase {
+    

Trait db_sqlx_postgres::dev::prelude::Migrate

source · []
pub trait Migrate: MCDatabase {
     fn migrate<'life0, 'async_trait>(
        &'life0 self
    ) -> Pin<Box<dyn Future<Output = Result<(), DBError>> + Send + 'async_trait, Global>>
    where
        'life0: 'async_trait,
        Self: 'async_trait
; }
Expand description

database migrations

-

Required methods

database specific error-type +

Required methods

database specific error-type run migrations

Implementors

\ No newline at end of file diff --git a/db_sqlx_postgres/dev/prelude/type.BoxDynError.html b/db_sqlx_postgres/dev/prelude/type.BoxDynError.html index 7f1bc902..d672f33e 100644 --- a/db_sqlx_postgres/dev/prelude/type.BoxDynError.html +++ b/db_sqlx_postgres/dev/prelude/type.BoxDynError.html @@ -4,6 +4,6 @@
pub type BoxDynError = Box<dyn Error + Send + Sync + 'static, Global>;
Expand description

Convenience type alias for grouping driver-specific errors

+

Type Definition db_sqlx_postgres::dev::prelude::BoxDynError

source · []
pub type BoxDynError = Box<dyn Error + Send + Sync + 'static, Global>;
Expand description

Convenience type alias for grouping driver-specific errors

\ No newline at end of file diff --git a/db_sqlx_postgres/dev/prelude/type.DBResult.html b/db_sqlx_postgres/dev/prelude/type.DBResult.html index 5a2a7be0..7cc786a0 100644 --- a/db_sqlx_postgres/dev/prelude/type.DBResult.html +++ b/db_sqlx_postgres/dev/prelude/type.DBResult.html @@ -4,6 +4,6 @@
pub type DBResult<V> = Result<V, DBError>;
Expand description

Generic result data structure

+

Type Definition db_sqlx_postgres::dev::prelude::DBResult

source · []
pub type DBResult<V> = Result<V, DBError>;
Expand description

Generic result data structure

\ No newline at end of file diff --git a/db_sqlx_postgres/dev/struct.AddNotification.html b/db_sqlx_postgres/dev/struct.AddNotification.html index 4b0ed450..b1b53e26 100644 --- a/db_sqlx_postgres/dev/struct.AddNotification.html +++ b/db_sqlx_postgres/dev/struct.AddNotification.html @@ -4,7 +4,7 @@
pub struct AddNotification<'a> {
+    

Struct db_sqlx_postgres::dev::AddNotification

source · []
pub struct AddNotification<'a> {
     pub to: &'a str,
     pub from: &'a str,
     pub heading: &'a str,
@@ -14,16 +14,16 @@
 
from: &'a str

notification sender

heading: &'a str

heading of the notification

message: &'a str

mesage 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

-

Deserialize this value from the given Serde deserializer. Read more

-

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

+

Deserialize this value from the given Serde deserializer. Read more

+

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

-

This method tests for !=.

-

Serialize this value into the given Serde serializer. Read more

-

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

+

This method tests for !=.

+

Serialize this value into the given Serde serializer. Read more

+

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/struct.Captcha.html b/db_sqlx_postgres/dev/struct.Captcha.html index b7e13845..8014f100 100644 --- a/db_sqlx_postgres/dev/struct.Captcha.html +++ b/db_sqlx_postgres/dev/struct.Captcha.html @@ -4,7 +4,7 @@
pub struct Captcha {
+    

Struct db_sqlx_postgres::dev::Captcha

source · []
pub struct Captcha {
     pub config_id: i32,
     pub duration: i32,
     pub description: String,
@@ -14,16 +14,16 @@
 
duration: i32

cool down duration

description: String

description of the captcha

key: String

secret key of the captcha

-

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

-

Deserialize this value from the given Serde deserializer. Read more

-

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

+

Deserialize this value from the given Serde deserializer. Read more

+

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

-

This method tests for !=.

-

Serialize this value into the given Serde serializer. Read more

-

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

+

This method tests for !=.

+

Serialize this value into the given Serde serializer. Read more

+

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/struct.CreateCaptcha.html b/db_sqlx_postgres/dev/struct.CreateCaptcha.html index 54d61c55..490e65f5 100644 --- a/db_sqlx_postgres/dev/struct.CreateCaptcha.html +++ b/db_sqlx_postgres/dev/struct.CreateCaptcha.html @@ -4,7 +4,7 @@
pub struct CreateCaptcha<'a> {
+    

Struct db_sqlx_postgres::dev::CreateCaptcha

source · []
pub struct CreateCaptcha<'a> {
     pub duration: i32,
     pub description: &'a str,
     pub key: &'a str,
@@ -12,16 +12,16 @@
 

Fields

duration: i32

cool down duration

description: &'a str

description of the captcha

key: &'a str

secret key of the captcha

-

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

-

Deserialize this value from the given Serde deserializer. Read more

-

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

+

Deserialize this value from the given Serde deserializer. Read more

+

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

-

This method tests for !=.

-

Serialize this value into the given Serde serializer. Read more

-

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

+

This method tests for !=.

+

Serialize this value into the given Serde serializer. Read more

+

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/struct.NameHash.html b/db_sqlx_postgres/dev/struct.NameHash.html index 3b5a94e4..4094b1c1 100644 --- a/db_sqlx_postgres/dev/struct.NameHash.html +++ b/db_sqlx_postgres/dev/struct.NameHash.html @@ -4,21 +4,21 @@
pub struct NameHash {
+    

Struct db_sqlx_postgres::dev::NameHash

source · []
pub struct NameHash {
     pub username: String,
     pub hash: String,
 }
Expand description

type encapsulating username and hashed password of a user

Fields

username: String

username

hash: String

hashed password

-

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

-

Deserialize this value from the given Serde deserializer. Read more

-

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

Formats the value using the given formatter. Read more

+

Deserialize this value from the given Serde deserializer. Read more

+

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

-

This method tests for !=.

-

Serialize this value into the given Serde serializer. Read more

-

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

+

This method tests for !=.

+

Serialize this value into the given Serde serializer. Read more

+

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/struct.Notification.html b/db_sqlx_postgres/dev/struct.Notification.html index ed456b32..f904756e 100644 --- a/db_sqlx_postgres/dev/struct.Notification.html +++ b/db_sqlx_postgres/dev/struct.Notification.html @@ -4,7 +4,7 @@
pub struct Notification {
+    

Struct db_sqlx_postgres::dev::Notification

source · []
pub struct Notification {
     pub name: Option<String>,
     pub heading: Option<String>,
     pub message: Option<String>,
@@ -16,17 +16,17 @@
 
message: Option<String>

message of the notification

received: Option<i64>

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

-

Deserialize this value from the given Serde deserializer. Read more

+

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.

-

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

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

-

This method tests for !=.

-

Serialize this value into the given Serde serializer. Read more

-

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

+

This method tests for !=.

+

Serialize this value into the given Serde serializer. Read more

+

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/struct.Register.html b/db_sqlx_postgres/dev/struct.Register.html index 2c05297e..31173b1b 100644 --- a/db_sqlx_postgres/dev/struct.Register.html +++ b/db_sqlx_postgres/dev/struct.Register.html @@ -4,7 +4,7 @@
pub struct Register<'a> {
+    

Struct db_sqlx_postgres::dev::Register

source · []
pub struct Register<'a> {
     pub username: &'a str,
     pub secret: &'a str,
     pub hash: &'a str,
@@ -14,15 +14,15 @@
 
secret: &'a str

secret of new user

hash: &'a str

hashed password of new use

email: Option<&'a str>

Optionally, email of new use

-

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

-

Deserialize this value from the given Serde deserializer. Read more

-

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

Formats the value using the given formatter. Read more

+

Deserialize this value from the given Serde deserializer. Read more

+

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

-

This method tests for !=.

-

Serialize this value into the given Serde serializer. Read more

-

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

+

This method tests for !=.

+

Serialize this value into the given Serde serializer. Read more

+

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/struct.Secret.html b/db_sqlx_postgres/dev/struct.Secret.html index b06fce4f..a1eeb3b7 100644 --- a/db_sqlx_postgres/dev/struct.Secret.html +++ b/db_sqlx_postgres/dev/struct.Secret.html @@ -4,20 +4,20 @@
pub struct Secret {
+    

Struct db_sqlx_postgres::dev::Secret

source · []
pub struct Secret {
     pub secret: String,
 }
Expand description

datastructure representing a user’s secret

Fields

secret: String

user’s secret

-

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

-

Deserialize this value from the given Serde deserializer. Read more

-

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

+

Deserialize this value from the given Serde deserializer. Read more

+

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

-

This method tests for !=.

-

Serialize this value into the given Serde serializer. Read more

-

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

+

This method tests for !=.

+

Serialize this value into the given Serde serializer. Read more

+

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/struct.StatsUnixTimestamp.html b/db_sqlx_postgres/dev/struct.StatsUnixTimestamp.html index a8568108..1915880f 100644 --- a/db_sqlx_postgres/dev/struct.StatsUnixTimestamp.html +++ b/db_sqlx_postgres/dev/struct.StatsUnixTimestamp.html @@ -4,7 +4,7 @@
pub struct StatsUnixTimestamp {
+    

Struct db_sqlx_postgres::dev::StatsUnixTimestamp

source · []
pub struct StatsUnixTimestamp {
     pub config_fetches: Vec<i64, Global>,
     pub solves: Vec<i64, Global>,
     pub confirms: Vec<i64, Global>,
@@ -12,16 +12,16 @@
 

Fields

config_fetches: Vec<i64, Global>

times at which the configuration were fetched

solves: Vec<i64, Global>

times at which the PoW was solved

confirms: Vec<i64, Global>

times at which the PoW token was verified

-

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

-

Deserialize this value from the given Serde deserializer. Read more

-

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

+

Deserialize this value from the given Serde deserializer. Read more

+

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

-

This method tests for !=.

-

Serialize this value into the given Serde serializer. Read more

-

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

+

This method tests for !=.

+

Serialize this value into the given Serde serializer. Read more

+

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/struct.TrafficPattern.html b/db_sqlx_postgres/dev/struct.TrafficPattern.html index d9e12754..257077f0 100644 --- a/db_sqlx_postgres/dev/struct.TrafficPattern.html +++ b/db_sqlx_postgres/dev/struct.TrafficPattern.html @@ -4,7 +4,7 @@
pub struct TrafficPattern {
+    

Struct db_sqlx_postgres::dev::TrafficPattern

source · []
pub struct TrafficPattern {
     pub avg_traffic: u32,
     pub peak_sustainable_traffic: u32,
     pub broke_my_site_traffic: Option<u32>,
@@ -12,16 +12,16 @@
 

Fields

avg_traffic: u32

average traffic of user’s website

peak_sustainable_traffic: u32

the peak traffic that the user’s website can handle

broke_my_site_traffic: Option<u32>

trafic that bought the user’s website down; optional

-

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

-

Deserialize this value from the given Serde deserializer. Read more

-

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

+

Deserialize this value from the given Serde deserializer. Read more

+

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

-

This method tests for !=.

-

Serialize this value into the given Serde serializer. Read more

-

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

+

This method tests for !=.

+

Serialize this value into the given Serde serializer. Read more

+

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/struct.UpdateEmail.html b/db_sqlx_postgres/dev/struct.UpdateEmail.html index 5230257a..dabc4fa9 100644 --- a/db_sqlx_postgres/dev/struct.UpdateEmail.html +++ b/db_sqlx_postgres/dev/struct.UpdateEmail.html @@ -4,21 +4,21 @@
pub struct UpdateEmail<'a> {
+    

Struct db_sqlx_postgres::dev::UpdateEmail

source · []
pub struct UpdateEmail<'a> {
     pub username: &'a str,
     pub new_email: &'a str,
 }
Expand description

data required to update them email of a user

Fields

username: &'a str

username of the user

new_email: &'a str

new email address of the user

-

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

-

Deserialize this value from the given Serde deserializer. Read more

-

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

Formats the value using the given formatter. Read more

+

Deserialize this value from the given Serde deserializer. Read more

+

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

-

This method tests for !=.

-

Serialize this value into the given Serde serializer. Read more

-

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

+

This method tests for !=.

+

Serialize this value into the given Serde serializer. Read more

+

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/tests/fn.database_works.html b/db_sqlx_postgres/dev/tests/fn.database_works.html index 26684edb..f0dcad41 100644 --- a/db_sqlx_postgres/dev/tests/fn.database_works.html +++ b/db_sqlx_postgres/dev/tests/fn.database_works.html @@ -4,6 +4,6 @@
pub async fn database_works<T>(
    db: &'_ T,
    p: &'_ Register<'a>,
    c: &'_ CreateCaptcha<'a>,
    l: &'_ [Level],
    tp: &'_ TrafficPattern,
    an: &'_ AddNotification<'a>
) where
    T: MCDatabase
Expand description

test all database functions

+

Function db_sqlx_postgres::dev::tests::database_works

source · []
pub async fn database_works<T>(
    db: &'_ T,
    p: &'_ Register<'a>,
    c: &'_ CreateCaptcha<'a>,
    l: &'_ [Level],
    tp: &'_ TrafficPattern,
    an: &'_ AddNotification<'a>
) where
    T: MCDatabase
Expand description

test all database functions

\ No newline at end of file diff --git a/db_sqlx_postgres/dev/tests/index.html b/db_sqlx_postgres/dev/tests/index.html index 139e80eb..71bf5422 100644 --- a/db_sqlx_postgres/dev/tests/index.html +++ b/db_sqlx_postgres/dev/tests/index.html @@ -4,7 +4,7 @@
Expand description

Test utilities

+

Module db_sqlx_postgres::dev::tests

source · []
Expand description

Test utilities

Functions

test all database functions

diff --git a/db_sqlx_postgres/dev/trait.CloneSPDatabase.html b/db_sqlx_postgres/dev/trait.CloneSPDatabase.html index 57648c28..71775278 100644 --- a/db_sqlx_postgres/dev/trait.CloneSPDatabase.html +++ b/db_sqlx_postgres/dev/trait.CloneSPDatabase.html @@ -4,9 +4,9 @@
pub trait CloneSPDatabase {
+    

Trait db_sqlx_postgres::dev::CloneSPDatabase

source · []
pub trait CloneSPDatabase {
     fn clone_db(&self) -> Box<dyn MCDatabase + 'static, Global>;
 }
Expand description

Trait to clone MCDatabase

-

Required methods

clone DB

-

Implementors

+

Required methods

clone DB

+

Implementors

\ No newline at end of file diff --git a/db_sqlx_postgres/dev/trait.Connect.html b/db_sqlx_postgres/dev/trait.Connect.html index 2efbe0ee..b12e0f1e 100644 --- a/db_sqlx_postgres/dev/trait.Connect.html +++ b/db_sqlx_postgres/dev/trait.Connect.html @@ -4,12 +4,12 @@
pub trait Connect {
+    

Trait db_sqlx_postgres::dev::Connect

source · []
pub trait Connect {
     type Pool: MCDatabase;
     fn connect<'async_trait>(
        self
    ) -> Pin<Box<dyn Future<Output = Result<Self::Pool, DBError>> + Send + 'async_trait, Global>>
    where
        Self: 'async_trait
; }
Expand description

Create databse connection

-

Associated Types

database specific pool-type

-

Required methods

database specific error-type +

Associated Types

database specific pool-type

+

Required methods

database specific error-type create connection pool

Implementors

\ No newline at end of file diff --git a/db_sqlx_postgres/dev/trait.DBOps.html b/db_sqlx_postgres/dev/trait.DBOps.html index 67553795..dd0c5f80 100644 --- a/db_sqlx_postgres/dev/trait.DBOps.html +++ b/db_sqlx_postgres/dev/trait.DBOps.html @@ -4,6 +4,6 @@
pub trait DBOps: GetConnection + Migrate { }
Expand description

Database operations trait(migrations, pool creation and fetching connection from pool)

+

Trait db_sqlx_postgres::dev::DBOps

source · []
pub trait DBOps: GetConnection + Migrate { }
Expand description

Database operations trait(migrations, pool creation and fetching connection from pool)

Implementors

\ No newline at end of file diff --git a/db_sqlx_postgres/dev/trait.GetConnection.html b/db_sqlx_postgres/dev/trait.GetConnection.html index 5cf911fc..c75c80ac 100644 --- a/db_sqlx_postgres/dev/trait.GetConnection.html +++ b/db_sqlx_postgres/dev/trait.GetConnection.html @@ -4,12 +4,12 @@
pub trait GetConnection {
+    

Trait db_sqlx_postgres::dev::GetConnection

source · []
pub trait GetConnection {
     type Conn;
     fn get_conn<'life0, 'async_trait>(
        &'life0 self
    ) -> Pin<Box<dyn Future<Output = Result<Self::Conn, DBError>> + Send + 'async_trait, Global>>
    where
        'life0: 'async_trait,
        Self: 'async_trait
; }
Expand description

Get database connection

-

Associated Types

database connection type

-

Required methods

database specific error-type +

Associated Types

database connection type

+

Required methods

database specific error-type get connection from connection pool

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 06f86840..b604e28a 100644 --- a/db_sqlx_postgres/dev/trait.MCDatabase.html +++ b/db_sqlx_postgres/dev/trait.MCDatabase.html @@ -4,7 +4,7 @@
pub trait MCDatabase: Send + Sync + CloneSPDatabase {
+    

Trait db_sqlx_postgres::dev::MCDatabase

source · []
pub trait MCDatabase: Send + Sync + CloneSPDatabase {
 
Show 35 methods fn ping<'life0, 'async_trait>(
        &'life0 self
    ) -> Pin<Box<dyn Future<Output = bool> + Send + 'async_trait, Global>>
    where
        'life0: 'async_trait,
        Self: 'async_trait
; fn register<'life0, 'life1, 'async_trait>(
        &'life0 self,
        p: &'life1 Register<'_>
    ) -> Pin<Box<dyn Future<Output = Result<(), DBError>> + Send + 'async_trait, Global>>
    where
        'life0: 'async_trait,
        'life1: 'async_trait,
        Self: 'async_trait
; fn delete_user<'life0, 'life1, 'async_trait>(
        &'life0 self,
        username: &'life1 str
    ) -> Pin<Box<dyn Future<Output = Result<(), DBError>> + Send + 'async_trait, Global>>
    where
        'life0: 'async_trait,
        'life1: 'async_trait,
        Self: 'async_trait
; @@ -42,40 +42,40 @@ fn fetch_confirm<'life0, 'life1, 'life2, 'async_trait>(
        &'life0 self,
        user: &'life1 str,
        key: &'life2 str
    ) -> Pin<Box<dyn Future<Output = Result<Vec<i64, Global>, DBError>> + Send + 'async_trait, Global>>
    where
        'life0: 'async_trait,
        'life1: 'async_trait,
        'life2: 'async_trait,
        Self: 'async_trait
;
}
Expand description

mCaptcha’s database requirements. To implement support for $Database, kindly implement this trait.

-

Required methods

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

-

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

-

featch PoWConfig fetches

-

featch PoWConfig solves

-

featch PoWConfig confirms

+

Required methods

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

+

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

+

featch PoWConfig fetches

+

featch PoWConfig solves

+

featch PoWConfig confirms

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 6a784b4b..4aca0261 100644 --- a/db_sqlx_postgres/dev/trait.Migrate.html +++ b/db_sqlx_postgres/dev/trait.Migrate.html @@ -4,10 +4,10 @@
pub trait Migrate: MCDatabase {
+    

Trait db_sqlx_postgres::dev::Migrate

source · []
pub trait Migrate: MCDatabase {
     fn migrate<'life0, 'async_trait>(
        &'life0 self
    ) -> Pin<Box<dyn Future<Output = Result<(), DBError>> + Send + 'async_trait, Global>>
    where
        'life0: 'async_trait,
        Self: 'async_trait
; }
Expand description

database migrations

-

Required methods

database specific error-type +

Required methods

database specific error-type run migrations

Implementors

\ No newline at end of file diff --git a/db_sqlx_postgres/dev/type.BoxDynError.html b/db_sqlx_postgres/dev/type.BoxDynError.html index 5c19a231..49c24238 100644 --- a/db_sqlx_postgres/dev/type.BoxDynError.html +++ b/db_sqlx_postgres/dev/type.BoxDynError.html @@ -4,6 +4,6 @@
pub type BoxDynError = Box<dyn Error + Send + Sync + 'static, Global>;
Expand description

Convenience type alias for grouping driver-specific errors

+

Type Definition db_sqlx_postgres::dev::BoxDynError

source · []
pub type BoxDynError = Box<dyn Error + Send + Sync + 'static, Global>;
Expand description

Convenience type alias for grouping driver-specific errors

\ No newline at end of file diff --git a/db_sqlx_postgres/dev/type.DBResult.html b/db_sqlx_postgres/dev/type.DBResult.html index 87efc35b..2770c069 100644 --- a/db_sqlx_postgres/dev/type.DBResult.html +++ b/db_sqlx_postgres/dev/type.DBResult.html @@ -4,6 +4,6 @@
-

Type Definition db_sqlx_postgres::dev::DBResult

[]
pub type DBResult<V> = Result<V, DBError>;
Expand description

Generic result data structure

+

Type Definition db_sqlx_postgres::dev::DBResult

source · []
pub type DBResult<V> = Result<V, DBError>;
Expand description

Generic result data structure

\ No newline at end of file diff --git a/db_sqlx_postgres/prelude/dev/enum.DBError.html b/db_sqlx_postgres/prelude/dev/enum.DBError.html index d09ac1f9..4876d913 100644 --- a/db_sqlx_postgres/prelude/dev/enum.DBError.html +++ b/db_sqlx_postgres/prelude/dev/enum.DBError.html @@ -4,7 +4,7 @@
pub enum DBError {
+    

Enum db_sqlx_postgres::prelude::dev::DBError

source · []
pub enum DBError {
     DBError(Box<dyn Error + Send + Sync + 'static, Global>),
     UsernameTaken,
     EmailTaken,
@@ -24,9 +24,9 @@
 

CaptchaNotFound

Captcha not found

TrafficPatternNotFound

Traffic pattern not found

NotificationNotFound

Notification not found

-

Trait Implementations

Formats the value using the given formatter. Read more

-

Formats the value using the given formatter. Read more

-

The lower-level source of this error, if any. Read more

+

Trait Implementations

Formats the value using the given formatter. Read more

+

Formats the value using the given formatter. Read more

+

The lower-level source of this error, if any. Read more

🔬 This is a nightly-only experimental API. (backtrace)

Returns a stack backtrace, if available, of where this error occurred. Read more

👎 Deprecated since 1.42.0:

use the Display impl or to_string()

👎 Deprecated since 1.33.0:

replaced by Error::source, which can support downcasting

diff --git a/db_sqlx_postgres/prelude/dev/enum.Login.html b/db_sqlx_postgres/prelude/dev/enum.Login.html index c6cd64e7..f37b42f1 100644 --- a/db_sqlx_postgres/prelude/dev/enum.Login.html +++ b/db_sqlx_postgres/prelude/dev/enum.Login.html @@ -4,21 +4,21 @@
pub enum Login<'a> {
+    

Enum db_sqlx_postgres::prelude::dev::Login

source · []
pub enum Login<'a> {
     Username(&'a str),
     Email(&'a str),
 }
Expand description

types of credentials used as identifiers during login

Variants

Username(&'a str)

username as login

Email(&'a str)

email as login

-

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

-

Deserialize this value from the given Serde deserializer. Read more

-

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

Formats the value using the given formatter. Read more

+

Deserialize this value from the given Serde deserializer. Read more

+

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

-

This method tests for !=.

-

Serialize this value into the given Serde serializer. Read more

-

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

+

This method tests for !=.

+

Serialize this value into the given Serde serializer. Read more

+

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/prelude/dev/index.html b/db_sqlx_postgres/prelude/dev/index.html index deb225d4..52da9bbf 100644 --- a/db_sqlx_postgres/prelude/dev/index.html +++ b/db_sqlx_postgres/prelude/dev/index.html @@ -4,7 +4,7 @@
Expand description

useful imports for supporting a new database

+

Module db_sqlx_postgres::prelude::dev

source · []
Expand description

useful imports for supporting a new database

Modules

useful imports for users working with a supported database

Structs

diff --git a/db_sqlx_postgres/prelude/dev/prelude/enum.DBError.html b/db_sqlx_postgres/prelude/dev/prelude/enum.DBError.html index bf666cb6..29db01e9 100644 --- a/db_sqlx_postgres/prelude/dev/prelude/enum.DBError.html +++ b/db_sqlx_postgres/prelude/dev/prelude/enum.DBError.html @@ -4,7 +4,7 @@
pub enum DBError {
+    

Enum db_sqlx_postgres::prelude::dev::prelude::DBError

source · []
pub enum DBError {
     DBError(Box<dyn Error + Send + Sync + 'static, Global>),
     UsernameTaken,
     EmailTaken,
@@ -24,9 +24,9 @@
 

CaptchaNotFound

Captcha not found

TrafficPatternNotFound

Traffic pattern not found

NotificationNotFound

Notification not found

-

Trait Implementations

Formats the value using the given formatter. Read more

-

Formats the value using the given formatter. Read more

-

The lower-level source of this error, if any. Read more

+

Trait Implementations

Formats the value using the given formatter. Read more

+

Formats the value using the given formatter. Read more

+

The lower-level source of this error, if any. Read more

🔬 This is a nightly-only experimental API. (backtrace)

Returns a stack backtrace, if available, of where this error occurred. Read more

👎 Deprecated since 1.42.0:

use the Display impl or to_string()

👎 Deprecated since 1.33.0:

replaced by Error::source, which can support downcasting

diff --git a/db_sqlx_postgres/prelude/dev/prelude/enum.Login.html b/db_sqlx_postgres/prelude/dev/prelude/enum.Login.html index 4b133cdb..f3298f60 100644 --- a/db_sqlx_postgres/prelude/dev/prelude/enum.Login.html +++ b/db_sqlx_postgres/prelude/dev/prelude/enum.Login.html @@ -4,21 +4,21 @@
pub enum Login<'a> {
+    

Enum db_sqlx_postgres::prelude::dev::prelude::Login

source · []
pub enum Login<'a> {
     Username(&'a str),
     Email(&'a str),
 }
Expand description

types of credentials used as identifiers during login

Variants

Username(&'a str)

username as login

Email(&'a str)

email as login

-

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

-

Deserialize this value from the given Serde deserializer. Read more

-

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

Formats the value using the given formatter. Read more

+

Deserialize this value from the given Serde deserializer. Read more

+

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

-

This method tests for !=.

-

Serialize this value into the given Serde serializer. Read more

-

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

+

This method tests for !=.

+

Serialize this value into the given Serde serializer. Read more

+

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/prelude/dev/prelude/index.html b/db_sqlx_postgres/prelude/dev/prelude/index.html index c5197c4f..95bd0680 100644 --- a/db_sqlx_postgres/prelude/dev/prelude/index.html +++ b/db_sqlx_postgres/prelude/dev/prelude/index.html @@ -4,7 +4,7 @@
Expand description

useful imports for users working with a supported database

+

Module db_sqlx_postgres::prelude::dev::prelude

source · []
Expand description

useful imports for users working with a supported database

Structs

Data required to add notification

Data representing a captcha

diff --git a/db_sqlx_postgres/prelude/dev/prelude/struct.AddNotification.html b/db_sqlx_postgres/prelude/dev/prelude/struct.AddNotification.html index e6f727d5..464e5cb6 100644 --- a/db_sqlx_postgres/prelude/dev/prelude/struct.AddNotification.html +++ b/db_sqlx_postgres/prelude/dev/prelude/struct.AddNotification.html @@ -4,7 +4,7 @@
pub struct AddNotification<'a> {
+    

Struct db_sqlx_postgres::prelude::dev::prelude::AddNotification

source · []
pub struct AddNotification<'a> {
     pub to: &'a str,
     pub from: &'a str,
     pub heading: &'a str,
@@ -14,16 +14,16 @@
 
from: &'a str

notification sender

heading: &'a str

heading of the notification

message: &'a str

mesage 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

-

Deserialize this value from the given Serde deserializer. Read more

-

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

+

Deserialize this value from the given Serde deserializer. Read more

+

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

-

This method tests for !=.

-

Serialize this value into the given Serde serializer. Read more

-

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

+

This method tests for !=.

+

Serialize this value into the given Serde serializer. Read more

+

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/prelude/dev/prelude/struct.Captcha.html b/db_sqlx_postgres/prelude/dev/prelude/struct.Captcha.html index c28c3de0..2d029b42 100644 --- a/db_sqlx_postgres/prelude/dev/prelude/struct.Captcha.html +++ b/db_sqlx_postgres/prelude/dev/prelude/struct.Captcha.html @@ -4,7 +4,7 @@
pub struct Captcha {
+    

Struct db_sqlx_postgres::prelude::dev::prelude::Captcha

source · []
pub struct Captcha {
     pub config_id: i32,
     pub duration: i32,
     pub description: String,
@@ -14,16 +14,16 @@
 
duration: i32

cool down duration

description: String

description of the captcha

key: String

secret key of the captcha

-

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

-

Deserialize this value from the given Serde deserializer. Read more

-

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

+

Deserialize this value from the given Serde deserializer. Read more

+

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

-

This method tests for !=.

-

Serialize this value into the given Serde serializer. Read more

-

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

+

This method tests for !=.

+

Serialize this value into the given Serde serializer. Read more

+

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/prelude/dev/prelude/struct.CreateCaptcha.html b/db_sqlx_postgres/prelude/dev/prelude/struct.CreateCaptcha.html index d1edc740..f1ede6c3 100644 --- a/db_sqlx_postgres/prelude/dev/prelude/struct.CreateCaptcha.html +++ b/db_sqlx_postgres/prelude/dev/prelude/struct.CreateCaptcha.html @@ -4,7 +4,7 @@
pub struct CreateCaptcha<'a> {
+    

Struct db_sqlx_postgres::prelude::dev::prelude::CreateCaptcha

source · []
pub struct CreateCaptcha<'a> {
     pub duration: i32,
     pub description: &'a str,
     pub key: &'a str,
@@ -12,16 +12,16 @@
 

Fields

duration: i32

cool down duration

description: &'a str

description of the captcha

key: &'a str

secret key of the captcha

-

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

-

Deserialize this value from the given Serde deserializer. Read more

-

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

+

Deserialize this value from the given Serde deserializer. Read more

+

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

-

This method tests for !=.

-

Serialize this value into the given Serde serializer. Read more

-

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

+

This method tests for !=.

+

Serialize this value into the given Serde serializer. Read more

+

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/prelude/dev/prelude/struct.NameHash.html b/db_sqlx_postgres/prelude/dev/prelude/struct.NameHash.html index 327c13d6..ccda2be9 100644 --- a/db_sqlx_postgres/prelude/dev/prelude/struct.NameHash.html +++ b/db_sqlx_postgres/prelude/dev/prelude/struct.NameHash.html @@ -4,21 +4,21 @@
pub struct NameHash {
+    

Struct db_sqlx_postgres::prelude::dev::prelude::NameHash

source · []
pub struct NameHash {
     pub username: String,
     pub hash: String,
 }
Expand description

type encapsulating username and hashed password of a user

Fields

username: String

username

hash: String

hashed password

-

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

-

Deserialize this value from the given Serde deserializer. Read more

-

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

Formats the value using the given formatter. Read more

+

Deserialize this value from the given Serde deserializer. Read more

+

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

-

This method tests for !=.

-

Serialize this value into the given Serde serializer. Read more

-

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

+

This method tests for !=.

+

Serialize this value into the given Serde serializer. Read more

+

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/prelude/dev/prelude/struct.Notification.html b/db_sqlx_postgres/prelude/dev/prelude/struct.Notification.html index 37dc6170..58ee0245 100644 --- a/db_sqlx_postgres/prelude/dev/prelude/struct.Notification.html +++ b/db_sqlx_postgres/prelude/dev/prelude/struct.Notification.html @@ -4,7 +4,7 @@
pub struct Notification {
+    

Struct db_sqlx_postgres::prelude::dev::prelude::Notification

source · []
pub struct Notification {
     pub name: Option<String>,
     pub heading: Option<String>,
     pub message: Option<String>,
@@ -16,17 +16,17 @@
 
message: Option<String>

message of the notification

received: Option<i64>

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

-

Deserialize this value from the given Serde deserializer. Read more

+

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.

-

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

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

-

This method tests for !=.

-

Serialize this value into the given Serde serializer. Read more

-

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

+

This method tests for !=.

+

Serialize this value into the given Serde serializer. Read more

+

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/prelude/dev/prelude/struct.Register.html b/db_sqlx_postgres/prelude/dev/prelude/struct.Register.html index 40ac517d..dca92078 100644 --- a/db_sqlx_postgres/prelude/dev/prelude/struct.Register.html +++ b/db_sqlx_postgres/prelude/dev/prelude/struct.Register.html @@ -4,7 +4,7 @@
pub struct Register<'a> {
+    

Struct db_sqlx_postgres::prelude::dev::prelude::Register

source · []
pub struct Register<'a> {
     pub username: &'a str,
     pub secret: &'a str,
     pub hash: &'a str,
@@ -14,15 +14,15 @@
 
secret: &'a str

secret of new user

hash: &'a str

hashed password of new use

email: Option<&'a str>

Optionally, email of new use

-

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

-

Deserialize this value from the given Serde deserializer. Read more

-

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

Formats the value using the given formatter. Read more

+

Deserialize this value from the given Serde deserializer. Read more

+

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

-

This method tests for !=.

-

Serialize this value into the given Serde serializer. Read more

-

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

+

This method tests for !=.

+

Serialize this value into the given Serde serializer. Read more

+

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/prelude/dev/prelude/struct.Secret.html b/db_sqlx_postgres/prelude/dev/prelude/struct.Secret.html index e3a8e59b..7512f915 100644 --- a/db_sqlx_postgres/prelude/dev/prelude/struct.Secret.html +++ b/db_sqlx_postgres/prelude/dev/prelude/struct.Secret.html @@ -4,20 +4,20 @@
pub struct Secret {
+    

Struct db_sqlx_postgres::prelude::dev::prelude::Secret

source · []
pub struct Secret {
     pub secret: String,
 }
Expand description

datastructure representing a user’s secret

Fields

secret: String

user’s secret

-

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

-

Deserialize this value from the given Serde deserializer. Read more

-

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

+

Deserialize this value from the given Serde deserializer. Read more

+

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

-

This method tests for !=.

-

Serialize this value into the given Serde serializer. Read more

-

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

+

This method tests for !=.

+

Serialize this value into the given Serde serializer. Read more

+

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/prelude/dev/prelude/struct.StatsUnixTimestamp.html b/db_sqlx_postgres/prelude/dev/prelude/struct.StatsUnixTimestamp.html index 940f38ff..9eaee11a 100644 --- a/db_sqlx_postgres/prelude/dev/prelude/struct.StatsUnixTimestamp.html +++ b/db_sqlx_postgres/prelude/dev/prelude/struct.StatsUnixTimestamp.html @@ -4,7 +4,7 @@
pub struct StatsUnixTimestamp {
+    

Struct db_sqlx_postgres::prelude::dev::prelude::StatsUnixTimestamp

source · []
pub struct StatsUnixTimestamp {
     pub config_fetches: Vec<i64, Global>,
     pub solves: Vec<i64, Global>,
     pub confirms: Vec<i64, Global>,
@@ -12,16 +12,16 @@
 

Fields

config_fetches: Vec<i64, Global>

times at which the configuration were fetched

solves: Vec<i64, Global>

times at which the PoW was solved

confirms: Vec<i64, Global>

times at which the PoW token was verified

-

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

-

Deserialize this value from the given Serde deserializer. Read more

-

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

+

Deserialize this value from the given Serde deserializer. Read more

+

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

-

This method tests for !=.

-

Serialize this value into the given Serde serializer. Read more

-

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

+

This method tests for !=.

+

Serialize this value into the given Serde serializer. Read more

+

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/prelude/dev/prelude/struct.TrafficPattern.html b/db_sqlx_postgres/prelude/dev/prelude/struct.TrafficPattern.html index 7688e495..56d8b5f4 100644 --- a/db_sqlx_postgres/prelude/dev/prelude/struct.TrafficPattern.html +++ b/db_sqlx_postgres/prelude/dev/prelude/struct.TrafficPattern.html @@ -4,7 +4,7 @@
pub struct TrafficPattern {
+    

Struct db_sqlx_postgres::prelude::dev::prelude::TrafficPattern

source · []
pub struct TrafficPattern {
     pub avg_traffic: u32,
     pub peak_sustainable_traffic: u32,
     pub broke_my_site_traffic: Option<u32>,
@@ -12,16 +12,16 @@
 

Fields

avg_traffic: u32

average traffic of user’s website

peak_sustainable_traffic: u32

the peak traffic that the user’s website can handle

broke_my_site_traffic: Option<u32>

trafic that bought the user’s website down; optional

-

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

-

Deserialize this value from the given Serde deserializer. Read more

-

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

+

Deserialize this value from the given Serde deserializer. Read more

+

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

-

This method tests for !=.

-

Serialize this value into the given Serde serializer. Read more

-

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

+

This method tests for !=.

+

Serialize this value into the given Serde serializer. Read more

+

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/prelude/dev/prelude/struct.UpdateEmail.html b/db_sqlx_postgres/prelude/dev/prelude/struct.UpdateEmail.html index 76280c51..d065f133 100644 --- a/db_sqlx_postgres/prelude/dev/prelude/struct.UpdateEmail.html +++ b/db_sqlx_postgres/prelude/dev/prelude/struct.UpdateEmail.html @@ -4,21 +4,21 @@
pub struct UpdateEmail<'a> {
+    

Struct db_sqlx_postgres::prelude::dev::prelude::UpdateEmail

source · []
pub struct UpdateEmail<'a> {
     pub username: &'a str,
     pub new_email: &'a str,
 }
Expand description

data required to update them email of a user

Fields

username: &'a str

username of the user

new_email: &'a str

new email address of the user

-

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

-

Deserialize this value from the given Serde deserializer. Read more

-

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

Formats the value using the given formatter. Read more

+

Deserialize this value from the given Serde deserializer. Read more

+

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

-

This method tests for !=.

-

Serialize this value into the given Serde serializer. Read more

-

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

+

This method tests for !=.

+

Serialize this value into the given Serde serializer. Read more

+

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/prelude/dev/prelude/trait.CloneSPDatabase.html b/db_sqlx_postgres/prelude/dev/prelude/trait.CloneSPDatabase.html index 0b394739..1c5a55e0 100644 --- a/db_sqlx_postgres/prelude/dev/prelude/trait.CloneSPDatabase.html +++ b/db_sqlx_postgres/prelude/dev/prelude/trait.CloneSPDatabase.html @@ -4,9 +4,9 @@
pub trait CloneSPDatabase {
+    

Trait db_sqlx_postgres::prelude::dev::prelude::CloneSPDatabase

source · []
pub trait CloneSPDatabase {
     fn clone_db(&self) -> Box<dyn MCDatabase + 'static, Global>;
 }
Expand description

Trait to clone MCDatabase

-

Required methods

clone DB

-

Implementors

+

Required methods

clone DB

+

Implementors

\ No newline at end of file diff --git a/db_sqlx_postgres/prelude/dev/prelude/trait.Connect.html b/db_sqlx_postgres/prelude/dev/prelude/trait.Connect.html index 9215ef62..6ec01f48 100644 --- a/db_sqlx_postgres/prelude/dev/prelude/trait.Connect.html +++ b/db_sqlx_postgres/prelude/dev/prelude/trait.Connect.html @@ -4,12 +4,12 @@
pub trait Connect {
+    

Trait db_sqlx_postgres::prelude::dev::prelude::Connect

source · []
pub trait Connect {
     type Pool: MCDatabase;
     fn connect<'async_trait>(
        self
    ) -> Pin<Box<dyn Future<Output = Result<Self::Pool, DBError>> + Send + 'async_trait, Global>>
    where
        Self: 'async_trait
; }
Expand description

Create databse connection

-

Associated Types

database specific pool-type

-

Required methods

database specific error-type +

Associated Types

database specific pool-type

+

Required methods

database specific error-type create connection pool

Implementors

\ No newline at end of file diff --git a/db_sqlx_postgres/prelude/dev/prelude/trait.DBOps.html b/db_sqlx_postgres/prelude/dev/prelude/trait.DBOps.html index 033b9dd1..e82ba5c2 100644 --- a/db_sqlx_postgres/prelude/dev/prelude/trait.DBOps.html +++ b/db_sqlx_postgres/prelude/dev/prelude/trait.DBOps.html @@ -4,6 +4,6 @@
pub trait DBOps: GetConnection + Migrate { }
Expand description

Database operations trait(migrations, pool creation and fetching connection from pool)

+

Trait db_sqlx_postgres::prelude::dev::prelude::DBOps

source · []
pub trait DBOps: GetConnection + Migrate { }
Expand description

Database operations trait(migrations, pool creation and fetching connection from pool)

Implementors

\ No newline at end of file diff --git a/db_sqlx_postgres/prelude/dev/prelude/trait.GetConnection.html b/db_sqlx_postgres/prelude/dev/prelude/trait.GetConnection.html index 715ede31..79f82c07 100644 --- a/db_sqlx_postgres/prelude/dev/prelude/trait.GetConnection.html +++ b/db_sqlx_postgres/prelude/dev/prelude/trait.GetConnection.html @@ -4,12 +4,12 @@
pub trait GetConnection {
+    

Trait db_sqlx_postgres::prelude::dev::prelude::GetConnection

source · []
pub trait GetConnection {
     type Conn;
     fn get_conn<'life0, 'async_trait>(
        &'life0 self
    ) -> Pin<Box<dyn Future<Output = Result<Self::Conn, DBError>> + Send + 'async_trait, Global>>
    where
        'life0: 'async_trait,
        Self: 'async_trait
; }
Expand description

Get database connection

-

Associated Types

database connection type

-

Required methods

database specific error-type +

Associated Types

database connection type

+

Required methods

database specific error-type get connection from connection pool

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 eb0f0abe..030cd03e 100644 --- a/db_sqlx_postgres/prelude/dev/prelude/trait.MCDatabase.html +++ b/db_sqlx_postgres/prelude/dev/prelude/trait.MCDatabase.html @@ -4,7 +4,7 @@
pub trait MCDatabase: Send + Sync + CloneSPDatabase {
 
Show 35 methods fn ping<'life0, 'async_trait>(
        &'life0 self
    ) -> Pin<Box<dyn Future<Output = bool> + Send + 'async_trait, Global>>
    where
        'life0: 'async_trait,
        Self: 'async_trait
; fn register<'life0, 'life1, 'async_trait>(
        &'life0 self,
        p: &'life1 Register<'_>
    ) -> Pin<Box<dyn Future<Output = Result<(), DBError>> + Send + 'async_trait, Global>>
    where
        'life0: 'async_trait,
        'life1: 'async_trait,
        Self: 'async_trait
; fn delete_user<'life0, 'life1, 'async_trait>(
        &'life0 self,
        username: &'life1 str
    ) -> Pin<Box<dyn Future<Output = Result<(), DBError>> + Send + 'async_trait, Global>>
    where
        'life0: 'async_trait,
        'life1: 'async_trait,
        Self: 'async_trait
; @@ -42,40 +42,40 @@ fn fetch_confirm<'life0, 'life1, 'life2, 'async_trait>(
        &'life0 self,
        user: &'life1 str,
        key: &'life2 str
    ) -> Pin<Box<dyn Future<Output = Result<Vec<i64, Global>, DBError>> + Send + 'async_trait, Global>>
    where
        'life0: 'async_trait,
        'life1: 'async_trait,
        'life2: 'async_trait,
        Self: 'async_trait
;
}
Expand description

mCaptcha’s database requirements. To implement support for $Database, kindly implement this trait.

-

Required methods

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

-

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

-

featch PoWConfig fetches

-

featch PoWConfig solves

-

featch PoWConfig confirms

+

Required methods

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

+

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

+

featch PoWConfig fetches

+

featch PoWConfig solves

+

featch PoWConfig confirms

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 7f2c4a6a..82b331e2 100644 --- a/db_sqlx_postgres/prelude/dev/prelude/trait.Migrate.html +++ b/db_sqlx_postgres/prelude/dev/prelude/trait.Migrate.html @@ -4,10 +4,10 @@
pub trait Migrate: MCDatabase {
+    

Trait db_sqlx_postgres::prelude::dev::prelude::Migrate

source · []
pub trait Migrate: MCDatabase {
     fn migrate<'life0, 'async_trait>(
        &'life0 self
    ) -> Pin<Box<dyn Future<Output = Result<(), DBError>> + Send + 'async_trait, Global>>
    where
        'life0: 'async_trait,
        Self: 'async_trait
; }
Expand description

database migrations

-

Required methods

database specific error-type +

Required methods

database specific error-type run migrations

Implementors

\ No newline at end of file diff --git a/db_sqlx_postgres/prelude/dev/prelude/type.BoxDynError.html b/db_sqlx_postgres/prelude/dev/prelude/type.BoxDynError.html index 4438131d..e3dc9509 100644 --- a/db_sqlx_postgres/prelude/dev/prelude/type.BoxDynError.html +++ b/db_sqlx_postgres/prelude/dev/prelude/type.BoxDynError.html @@ -4,6 +4,6 @@
pub type BoxDynError = Box<dyn Error + Send + Sync + 'static, Global>;
Expand description

Convenience type alias for grouping driver-specific errors

+

Type Definition db_sqlx_postgres::prelude::dev::prelude::BoxDynError

source · []
pub type BoxDynError = Box<dyn Error + Send + Sync + 'static, Global>;
Expand description

Convenience type alias for grouping driver-specific errors

\ No newline at end of file diff --git a/db_sqlx_postgres/prelude/dev/prelude/type.DBResult.html b/db_sqlx_postgres/prelude/dev/prelude/type.DBResult.html index 97c1d320..856fbd1f 100644 --- a/db_sqlx_postgres/prelude/dev/prelude/type.DBResult.html +++ b/db_sqlx_postgres/prelude/dev/prelude/type.DBResult.html @@ -4,6 +4,6 @@
pub type DBResult<V> = Result<V, DBError>;
Expand description

Generic result data structure

+

Type Definition db_sqlx_postgres::prelude::dev::prelude::DBResult

source · []
pub type DBResult<V> = Result<V, DBError>;
Expand description

Generic result data structure

\ No newline at end of file diff --git a/db_sqlx_postgres/prelude/dev/struct.AddNotification.html b/db_sqlx_postgres/prelude/dev/struct.AddNotification.html index 7f241c3e..91549726 100644 --- a/db_sqlx_postgres/prelude/dev/struct.AddNotification.html +++ b/db_sqlx_postgres/prelude/dev/struct.AddNotification.html @@ -4,7 +4,7 @@
pub struct AddNotification<'a> {
+    

Struct db_sqlx_postgres::prelude::dev::AddNotification

source · []
pub struct AddNotification<'a> {
     pub to: &'a str,
     pub from: &'a str,
     pub heading: &'a str,
@@ -14,16 +14,16 @@
 
from: &'a str

notification sender

heading: &'a str

heading of the notification

message: &'a str

mesage 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

-

Deserialize this value from the given Serde deserializer. Read more

-

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

+

Deserialize this value from the given Serde deserializer. Read more

+

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

-

This method tests for !=.

-

Serialize this value into the given Serde serializer. Read more

-

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

+

This method tests for !=.

+

Serialize this value into the given Serde serializer. Read more

+

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/prelude/dev/struct.Captcha.html b/db_sqlx_postgres/prelude/dev/struct.Captcha.html index 08795555..9571faed 100644 --- a/db_sqlx_postgres/prelude/dev/struct.Captcha.html +++ b/db_sqlx_postgres/prelude/dev/struct.Captcha.html @@ -4,7 +4,7 @@
pub struct Captcha {
+    

Struct db_sqlx_postgres::prelude::dev::Captcha

source · []
pub struct Captcha {
     pub config_id: i32,
     pub duration: i32,
     pub description: String,
@@ -14,16 +14,16 @@
 
duration: i32

cool down duration

description: String

description of the captcha

key: String

secret key of the captcha

-

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

-

Deserialize this value from the given Serde deserializer. Read more

-

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

+

Deserialize this value from the given Serde deserializer. Read more

+

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

-

This method tests for !=.

-

Serialize this value into the given Serde serializer. Read more

-

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

+

This method tests for !=.

+

Serialize this value into the given Serde serializer. Read more

+

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/prelude/dev/struct.CreateCaptcha.html b/db_sqlx_postgres/prelude/dev/struct.CreateCaptcha.html index 11c701e2..010cc19a 100644 --- a/db_sqlx_postgres/prelude/dev/struct.CreateCaptcha.html +++ b/db_sqlx_postgres/prelude/dev/struct.CreateCaptcha.html @@ -4,7 +4,7 @@
pub struct CreateCaptcha<'a> {
+    

Struct db_sqlx_postgres::prelude::dev::CreateCaptcha

source · []
pub struct CreateCaptcha<'a> {
     pub duration: i32,
     pub description: &'a str,
     pub key: &'a str,
@@ -12,16 +12,16 @@
 

Fields

duration: i32

cool down duration

description: &'a str

description of the captcha

key: &'a str

secret key of the captcha

-

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

-

Deserialize this value from the given Serde deserializer. Read more

-

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

+

Deserialize this value from the given Serde deserializer. Read more

+

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

-

This method tests for !=.

-

Serialize this value into the given Serde serializer. Read more

-

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

+

This method tests for !=.

+

Serialize this value into the given Serde serializer. Read more

+

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/prelude/dev/struct.NameHash.html b/db_sqlx_postgres/prelude/dev/struct.NameHash.html index 4828cc51..dfa09761 100644 --- a/db_sqlx_postgres/prelude/dev/struct.NameHash.html +++ b/db_sqlx_postgres/prelude/dev/struct.NameHash.html @@ -4,21 +4,21 @@
pub struct NameHash {
+    

Struct db_sqlx_postgres::prelude::dev::NameHash

source · []
pub struct NameHash {
     pub username: String,
     pub hash: String,
 }
Expand description

type encapsulating username and hashed password of a user

Fields

username: String

username

hash: String

hashed password

-

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

-

Deserialize this value from the given Serde deserializer. Read more

-

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

Formats the value using the given formatter. Read more

+

Deserialize this value from the given Serde deserializer. Read more

+

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

-

This method tests for !=.

-

Serialize this value into the given Serde serializer. Read more

-

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

+

This method tests for !=.

+

Serialize this value into the given Serde serializer. Read more

+

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/prelude/dev/struct.Notification.html b/db_sqlx_postgres/prelude/dev/struct.Notification.html index 39c1eeb8..bc7f94c6 100644 --- a/db_sqlx_postgres/prelude/dev/struct.Notification.html +++ b/db_sqlx_postgres/prelude/dev/struct.Notification.html @@ -4,7 +4,7 @@
pub struct Notification {
+    

Struct db_sqlx_postgres::prelude::dev::Notification

source · []
pub struct Notification {
     pub name: Option<String>,
     pub heading: Option<String>,
     pub message: Option<String>,
@@ -16,17 +16,17 @@
 
message: Option<String>

message of the notification

received: Option<i64>

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

-

Deserialize this value from the given Serde deserializer. Read more

+

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.

-

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

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

-

This method tests for !=.

-

Serialize this value into the given Serde serializer. Read more

-

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

+

This method tests for !=.

+

Serialize this value into the given Serde serializer. Read more

+

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/prelude/dev/struct.Register.html b/db_sqlx_postgres/prelude/dev/struct.Register.html index 88e2bc0f..3d0c1fcd 100644 --- a/db_sqlx_postgres/prelude/dev/struct.Register.html +++ b/db_sqlx_postgres/prelude/dev/struct.Register.html @@ -4,7 +4,7 @@
pub struct Register<'a> {
+    

Struct db_sqlx_postgres::prelude::dev::Register

source · []
pub struct Register<'a> {
     pub username: &'a str,
     pub secret: &'a str,
     pub hash: &'a str,
@@ -14,15 +14,15 @@
 
secret: &'a str

secret of new user

hash: &'a str

hashed password of new use

email: Option<&'a str>

Optionally, email of new use

-

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

-

Deserialize this value from the given Serde deserializer. Read more

-

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

Formats the value using the given formatter. Read more

+

Deserialize this value from the given Serde deserializer. Read more

+

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

-

This method tests for !=.

-

Serialize this value into the given Serde serializer. Read more

-

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

+

This method tests for !=.

+

Serialize this value into the given Serde serializer. Read more

+

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/prelude/dev/struct.Secret.html b/db_sqlx_postgres/prelude/dev/struct.Secret.html index c543d1cb..25847862 100644 --- a/db_sqlx_postgres/prelude/dev/struct.Secret.html +++ b/db_sqlx_postgres/prelude/dev/struct.Secret.html @@ -4,20 +4,20 @@
pub struct Secret {
+    

Struct db_sqlx_postgres::prelude::dev::Secret

source · []
pub struct Secret {
     pub secret: String,
 }
Expand description

datastructure representing a user’s secret

Fields

secret: String

user’s secret

-

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

-

Deserialize this value from the given Serde deserializer. Read more

-

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

+

Deserialize this value from the given Serde deserializer. Read more

+

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

-

This method tests for !=.

-

Serialize this value into the given Serde serializer. Read more

-

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

+

This method tests for !=.

+

Serialize this value into the given Serde serializer. Read more

+

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/prelude/dev/struct.StatsUnixTimestamp.html b/db_sqlx_postgres/prelude/dev/struct.StatsUnixTimestamp.html index f6ea00e2..e2f1a19f 100644 --- a/db_sqlx_postgres/prelude/dev/struct.StatsUnixTimestamp.html +++ b/db_sqlx_postgres/prelude/dev/struct.StatsUnixTimestamp.html @@ -4,7 +4,7 @@
pub struct StatsUnixTimestamp {
+    

Struct db_sqlx_postgres::prelude::dev::StatsUnixTimestamp

source · []
pub struct StatsUnixTimestamp {
     pub config_fetches: Vec<i64, Global>,
     pub solves: Vec<i64, Global>,
     pub confirms: Vec<i64, Global>,
@@ -12,16 +12,16 @@
 

Fields

config_fetches: Vec<i64, Global>

times at which the configuration were fetched

solves: Vec<i64, Global>

times at which the PoW was solved

confirms: Vec<i64, Global>

times at which the PoW token was verified

-

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

-

Deserialize this value from the given Serde deserializer. Read more

-

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

+

Deserialize this value from the given Serde deserializer. Read more

+

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

-

This method tests for !=.

-

Serialize this value into the given Serde serializer. Read more

-

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

+

This method tests for !=.

+

Serialize this value into the given Serde serializer. Read more

+

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/prelude/dev/struct.TrafficPattern.html b/db_sqlx_postgres/prelude/dev/struct.TrafficPattern.html index 384b5105..341ea3cd 100644 --- a/db_sqlx_postgres/prelude/dev/struct.TrafficPattern.html +++ b/db_sqlx_postgres/prelude/dev/struct.TrafficPattern.html @@ -4,7 +4,7 @@
pub struct TrafficPattern {
+    

Struct db_sqlx_postgres::prelude::dev::TrafficPattern

source · []
pub struct TrafficPattern {
     pub avg_traffic: u32,
     pub peak_sustainable_traffic: u32,
     pub broke_my_site_traffic: Option<u32>,
@@ -12,16 +12,16 @@
 

Fields

avg_traffic: u32

average traffic of user’s website

peak_sustainable_traffic: u32

the peak traffic that the user’s website can handle

broke_my_site_traffic: Option<u32>

trafic that bought the user’s website down; optional

-

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

-

Deserialize this value from the given Serde deserializer. Read more

-

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

+

Deserialize this value from the given Serde deserializer. Read more

+

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

-

This method tests for !=.

-

Serialize this value into the given Serde serializer. Read more

-

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

+

This method tests for !=.

+

Serialize this value into the given Serde serializer. Read more

+

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/prelude/dev/struct.UpdateEmail.html b/db_sqlx_postgres/prelude/dev/struct.UpdateEmail.html index c1ceff02..2ca57db0 100644 --- a/db_sqlx_postgres/prelude/dev/struct.UpdateEmail.html +++ b/db_sqlx_postgres/prelude/dev/struct.UpdateEmail.html @@ -4,21 +4,21 @@
pub struct UpdateEmail<'a> {
+    

Struct db_sqlx_postgres::prelude::dev::UpdateEmail

source · []
pub struct UpdateEmail<'a> {
     pub username: &'a str,
     pub new_email: &'a str,
 }
Expand description

data required to update them email of a user

Fields

username: &'a str

username of the user

new_email: &'a str

new email address of the user

-

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

-

Deserialize this value from the given Serde deserializer. Read more

-

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

Formats the value using the given formatter. Read more

+

Deserialize this value from the given Serde deserializer. Read more

+

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

-

This method tests for !=.

-

Serialize this value into the given Serde serializer. Read more

-

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

+

This method tests for !=.

+

Serialize this value into the given Serde serializer. Read more

+

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/prelude/dev/trait.CloneSPDatabase.html b/db_sqlx_postgres/prelude/dev/trait.CloneSPDatabase.html index 2cfc2a23..153c9d54 100644 --- a/db_sqlx_postgres/prelude/dev/trait.CloneSPDatabase.html +++ b/db_sqlx_postgres/prelude/dev/trait.CloneSPDatabase.html @@ -4,9 +4,9 @@
pub trait CloneSPDatabase {
+    

Trait db_sqlx_postgres::prelude::dev::CloneSPDatabase

source · []
pub trait CloneSPDatabase {
     fn clone_db(&self) -> Box<dyn MCDatabase + 'static, Global>;
 }
Expand description

Trait to clone MCDatabase

-

Required methods

clone DB

-

Implementors

+

Required methods

clone DB

+

Implementors

\ No newline at end of file diff --git a/db_sqlx_postgres/prelude/dev/trait.Connect.html b/db_sqlx_postgres/prelude/dev/trait.Connect.html index 6d6fc349..c06ea6ef 100644 --- a/db_sqlx_postgres/prelude/dev/trait.Connect.html +++ b/db_sqlx_postgres/prelude/dev/trait.Connect.html @@ -4,12 +4,12 @@
pub trait Connect {
+    

Trait db_sqlx_postgres::prelude::dev::Connect

source · []
pub trait Connect {
     type Pool: MCDatabase;
     fn connect<'async_trait>(
        self
    ) -> Pin<Box<dyn Future<Output = Result<Self::Pool, DBError>> + Send + 'async_trait, Global>>
    where
        Self: 'async_trait
; }
Expand description

Create databse connection

-

Associated Types

database specific pool-type

-

Required methods

database specific error-type +

Associated Types

database specific pool-type

+

Required methods

database specific error-type create connection pool

Implementors

\ No newline at end of file diff --git a/db_sqlx_postgres/prelude/dev/trait.DBOps.html b/db_sqlx_postgres/prelude/dev/trait.DBOps.html index 9815690e..b18a4574 100644 --- a/db_sqlx_postgres/prelude/dev/trait.DBOps.html +++ b/db_sqlx_postgres/prelude/dev/trait.DBOps.html @@ -4,6 +4,6 @@
pub trait DBOps: GetConnection + Migrate { }
Expand description

Database operations trait(migrations, pool creation and fetching connection from pool)

+

Trait db_sqlx_postgres::prelude::dev::DBOps

source · []
pub trait DBOps: GetConnection + Migrate { }
Expand description

Database operations trait(migrations, pool creation and fetching connection from pool)

Implementors

\ No newline at end of file diff --git a/db_sqlx_postgres/prelude/dev/trait.GetConnection.html b/db_sqlx_postgres/prelude/dev/trait.GetConnection.html index 5d43c848..2a2126bc 100644 --- a/db_sqlx_postgres/prelude/dev/trait.GetConnection.html +++ b/db_sqlx_postgres/prelude/dev/trait.GetConnection.html @@ -4,12 +4,12 @@
pub trait GetConnection {
+    

Trait db_sqlx_postgres::prelude::dev::GetConnection

source · []
pub trait GetConnection {
     type Conn;
     fn get_conn<'life0, 'async_trait>(
        &'life0 self
    ) -> Pin<Box<dyn Future<Output = Result<Self::Conn, DBError>> + Send + 'async_trait, Global>>
    where
        'life0: 'async_trait,
        Self: 'async_trait
; }
Expand description

Get database connection

-

Associated Types

database connection type

-

Required methods

database specific error-type +

Associated Types

database connection type

+

Required methods

database specific error-type get connection from connection pool

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 df4e8429..fcd0c7be 100644 --- a/db_sqlx_postgres/prelude/dev/trait.MCDatabase.html +++ b/db_sqlx_postgres/prelude/dev/trait.MCDatabase.html @@ -4,7 +4,7 @@
pub trait MCDatabase: Send + Sync + CloneSPDatabase {
+    

Trait db_sqlx_postgres::prelude::dev::MCDatabase

source · []
pub trait MCDatabase: Send + Sync + CloneSPDatabase {
 
Show 35 methods fn ping<'life0, 'async_trait>(
        &'life0 self
    ) -> Pin<Box<dyn Future<Output = bool> + Send + 'async_trait, Global>>
    where
        'life0: 'async_trait,
        Self: 'async_trait
; fn register<'life0, 'life1, 'async_trait>(
        &'life0 self,
        p: &'life1 Register<'_>
    ) -> Pin<Box<dyn Future<Output = Result<(), DBError>> + Send + 'async_trait, Global>>
    where
        'life0: 'async_trait,
        'life1: 'async_trait,
        Self: 'async_trait
; fn delete_user<'life0, 'life1, 'async_trait>(
        &'life0 self,
        username: &'life1 str
    ) -> Pin<Box<dyn Future<Output = Result<(), DBError>> + Send + 'async_trait, Global>>
    where
        'life0: 'async_trait,
        'life1: 'async_trait,
        Self: 'async_trait
; @@ -42,40 +42,40 @@ fn fetch_confirm<'life0, 'life1, 'life2, 'async_trait>(
        &'life0 self,
        user: &'life1 str,
        key: &'life2 str
    ) -> Pin<Box<dyn Future<Output = Result<Vec<i64, Global>, DBError>> + Send + 'async_trait, Global>>
    where
        'life0: 'async_trait,
        'life1: 'async_trait,
        'life2: 'async_trait,
        Self: 'async_trait
;
}
Expand description

mCaptcha’s database requirements. To implement support for $Database, kindly implement this trait.

-

Required methods

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

-

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

-

featch PoWConfig fetches

-

featch PoWConfig solves

-

featch PoWConfig confirms

+

Required methods

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

+

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

+

featch PoWConfig fetches

+

featch PoWConfig solves

+

featch PoWConfig confirms

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 1139f8df..29d1982d 100644 --- a/db_sqlx_postgres/prelude/dev/trait.Migrate.html +++ b/db_sqlx_postgres/prelude/dev/trait.Migrate.html @@ -4,10 +4,10 @@
pub trait Migrate: MCDatabase {
+    

Trait db_sqlx_postgres::prelude::dev::Migrate

source · []
pub trait Migrate: MCDatabase {
     fn migrate<'life0, 'async_trait>(
        &'life0 self
    ) -> Pin<Box<dyn Future<Output = Result<(), DBError>> + Send + 'async_trait, Global>>
    where
        'life0: 'async_trait,
        Self: 'async_trait
; }
Expand description

database migrations

-

Required methods

database specific error-type +

Required methods

database specific error-type run migrations

Implementors

\ No newline at end of file diff --git a/db_sqlx_postgres/prelude/dev/type.BoxDynError.html b/db_sqlx_postgres/prelude/dev/type.BoxDynError.html index 7ddadeb6..dc62ec8e 100644 --- a/db_sqlx_postgres/prelude/dev/type.BoxDynError.html +++ b/db_sqlx_postgres/prelude/dev/type.BoxDynError.html @@ -4,6 +4,6 @@
pub type BoxDynError = Box<dyn Error + Send + Sync + 'static, Global>;
Expand description

Convenience type alias for grouping driver-specific errors

+

Type Definition db_sqlx_postgres::prelude::dev::BoxDynError

source · []
pub type BoxDynError = Box<dyn Error + Send + Sync + 'static, Global>;
Expand description

Convenience type alias for grouping driver-specific errors

\ No newline at end of file diff --git a/db_sqlx_postgres/prelude/dev/type.DBResult.html b/db_sqlx_postgres/prelude/dev/type.DBResult.html index 053bad3a..da4555dd 100644 --- a/db_sqlx_postgres/prelude/dev/type.DBResult.html +++ b/db_sqlx_postgres/prelude/dev/type.DBResult.html @@ -4,6 +4,6 @@
pub type DBResult<V> = Result<V, DBError>;
Expand description

Generic result data structure

+

Type Definition db_sqlx_postgres::prelude::dev::DBResult

source · []
pub type DBResult<V> = Result<V, DBError>;
Expand description

Generic result data structure

\ No newline at end of file diff --git a/db_sqlx_postgres/prelude/enum.DBError.html b/db_sqlx_postgres/prelude/enum.DBError.html index 42c764ad..a7db707f 100644 --- a/db_sqlx_postgres/prelude/enum.DBError.html +++ b/db_sqlx_postgres/prelude/enum.DBError.html @@ -4,7 +4,7 @@
pub enum DBError {
+    

Enum db_sqlx_postgres::prelude::DBError

source · []
pub enum DBError {
     DBError(Box<dyn Error + Send + Sync + 'static, Global>),
     UsernameTaken,
     EmailTaken,
@@ -24,9 +24,9 @@
 

CaptchaNotFound

Captcha not found

TrafficPatternNotFound

Traffic pattern not found

NotificationNotFound

Notification not found

-

Trait Implementations

Formats the value using the given formatter. Read more

-

Formats the value using the given formatter. Read more

-

The lower-level source of this error, if any. Read more

+

Trait Implementations

Formats the value using the given formatter. Read more

+

Formats the value using the given formatter. Read more

+

The lower-level source of this error, if any. Read more

🔬 This is a nightly-only experimental API. (backtrace)

Returns a stack backtrace, if available, of where this error occurred. Read more

👎 Deprecated since 1.42.0:

use the Display impl or to_string()

👎 Deprecated since 1.33.0:

replaced by Error::source, which can support downcasting

diff --git a/db_sqlx_postgres/prelude/enum.Login.html b/db_sqlx_postgres/prelude/enum.Login.html index 1f7e5826..c9cdad49 100644 --- a/db_sqlx_postgres/prelude/enum.Login.html +++ b/db_sqlx_postgres/prelude/enum.Login.html @@ -4,21 +4,21 @@
pub enum Login<'a> {
+    

Enum db_sqlx_postgres::prelude::Login

source · []
pub enum Login<'a> {
     Username(&'a str),
     Email(&'a str),
 }
Expand description

types of credentials used as identifiers during login

Variants

Username(&'a str)

username as login

Email(&'a str)

email as login

-

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

-

Deserialize this value from the given Serde deserializer. Read more

-

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

Formats the value using the given formatter. Read more

+

Deserialize this value from the given Serde deserializer. Read more

+

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

-

This method tests for !=.

-

Serialize this value into the given Serde serializer. Read more

-

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

+

This method tests for !=.

+

Serialize this value into the given Serde serializer. Read more

+

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/prelude/errors/enum.DBError.html b/db_sqlx_postgres/prelude/errors/enum.DBError.html index 6356d70f..3050beb6 100644 --- a/db_sqlx_postgres/prelude/errors/enum.DBError.html +++ b/db_sqlx_postgres/prelude/errors/enum.DBError.html @@ -4,7 +4,7 @@
pub enum DBError {
+    

Enum db_sqlx_postgres::prelude::errors::DBError

source · []
pub enum DBError {
     DBError(Box<dyn Error + Send + Sync + 'static, Global>),
     UsernameTaken,
     EmailTaken,
@@ -24,9 +24,9 @@
 

CaptchaNotFound

Captcha not found

TrafficPatternNotFound

Traffic pattern not found

NotificationNotFound

Notification not found

-

Trait Implementations

Formats the value using the given formatter. Read more

-

Formats the value using the given formatter. Read more

-

The lower-level source of this error, if any. Read more

+

Trait Implementations

Formats the value using the given formatter. Read more

+

Formats the value using the given formatter. Read more

+

The lower-level source of this error, if any. Read more

🔬 This is a nightly-only experimental API. (backtrace)

Returns a stack backtrace, if available, of where this error occurred. Read more

👎 Deprecated since 1.42.0:

use the Display impl or to_string()

👎 Deprecated since 1.33.0:

replaced by Error::source, which can support downcasting

diff --git a/db_sqlx_postgres/prelude/errors/index.html b/db_sqlx_postgres/prelude/errors/index.html index a031c052..5c0afee6 100644 --- a/db_sqlx_postgres/prelude/errors/index.html +++ b/db_sqlx_postgres/prelude/errors/index.html @@ -4,7 +4,7 @@
Expand description

represents all the ways a trait can fail using this crate

+

Module db_sqlx_postgres::prelude::errors

source · []
Expand description

represents all the ways a trait can fail using this crate

Enums

Error data structure grouping various error subtypes

Type Definitions

diff --git a/db_sqlx_postgres/prelude/errors/type.BoxDynError.html b/db_sqlx_postgres/prelude/errors/type.BoxDynError.html index a6c69c81..a1b3ff97 100644 --- a/db_sqlx_postgres/prelude/errors/type.BoxDynError.html +++ b/db_sqlx_postgres/prelude/errors/type.BoxDynError.html @@ -4,6 +4,6 @@
pub type BoxDynError = Box<dyn Error + Send + Sync + 'static, Global>;
Expand description

Convenience type alias for grouping driver-specific errors

+

Type Definition db_sqlx_postgres::prelude::errors::BoxDynError

source · []
pub type BoxDynError = Box<dyn Error + Send + Sync + 'static, Global>;
Expand description

Convenience type alias for grouping driver-specific errors

\ No newline at end of file diff --git a/db_sqlx_postgres/prelude/errors/type.DBResult.html b/db_sqlx_postgres/prelude/errors/type.DBResult.html index f9991b3a..93aa17ad 100644 --- a/db_sqlx_postgres/prelude/errors/type.DBResult.html +++ b/db_sqlx_postgres/prelude/errors/type.DBResult.html @@ -4,6 +4,6 @@
pub type DBResult<V> = Result<V, DBError>;
Expand description

Generic result data structure

+

Type Definition db_sqlx_postgres::prelude::errors::DBResult

source · []
pub type DBResult<V> = Result<V, DBError>;
Expand description

Generic result data structure

\ No newline at end of file diff --git a/db_sqlx_postgres/prelude/ops/index.html b/db_sqlx_postgres/prelude/ops/index.html index bab31d80..dc16ac1c 100644 --- a/db_sqlx_postgres/prelude/ops/index.html +++ b/db_sqlx_postgres/prelude/ops/index.html @@ -4,7 +4,7 @@
Expand description

meta operations like migration and connecting to a database

+

Module db_sqlx_postgres::prelude::ops

source · []
Expand description

meta operations like migration and connecting to a database

Traits

Create databse connection

Database operations trait(migrations, pool creation and fetching connection from pool)

diff --git a/db_sqlx_postgres/prelude/ops/trait.Connect.html b/db_sqlx_postgres/prelude/ops/trait.Connect.html index 5c5cc951..309092b4 100644 --- a/db_sqlx_postgres/prelude/ops/trait.Connect.html +++ b/db_sqlx_postgres/prelude/ops/trait.Connect.html @@ -4,12 +4,12 @@
pub trait Connect {
+    

Trait db_sqlx_postgres::prelude::ops::Connect

source · []
pub trait Connect {
     type Pool: MCDatabase;
     fn connect<'async_trait>(
        self
    ) -> Pin<Box<dyn Future<Output = Result<Self::Pool, DBError>> + Send + 'async_trait, Global>>
    where
        Self: 'async_trait
; }
Expand description

Create databse connection

-

Associated Types

database specific pool-type

-

Required methods

database specific error-type +

Associated Types

database specific pool-type

+

Required methods

database specific error-type create connection pool

Implementors

\ No newline at end of file diff --git a/db_sqlx_postgres/prelude/ops/trait.DBOps.html b/db_sqlx_postgres/prelude/ops/trait.DBOps.html index d6862b74..eb3ae8f8 100644 --- a/db_sqlx_postgres/prelude/ops/trait.DBOps.html +++ b/db_sqlx_postgres/prelude/ops/trait.DBOps.html @@ -4,6 +4,6 @@
pub trait DBOps: GetConnection + Migrate { }
Expand description

Database operations trait(migrations, pool creation and fetching connection from pool)

+

Trait db_sqlx_postgres::prelude::ops::DBOps

source · []
pub trait DBOps: GetConnection + Migrate { }
Expand description

Database operations trait(migrations, pool creation and fetching connection from pool)

Implementors

\ No newline at end of file diff --git a/db_sqlx_postgres/prelude/ops/trait.GetConnection.html b/db_sqlx_postgres/prelude/ops/trait.GetConnection.html index 66cb7853..2ec1ae13 100644 --- a/db_sqlx_postgres/prelude/ops/trait.GetConnection.html +++ b/db_sqlx_postgres/prelude/ops/trait.GetConnection.html @@ -4,12 +4,12 @@
pub trait GetConnection {
+    

Trait db_sqlx_postgres::prelude::ops::GetConnection

source · []
pub trait GetConnection {
     type Conn;
     fn get_conn<'life0, 'async_trait>(
        &'life0 self
    ) -> Pin<Box<dyn Future<Output = Result<Self::Conn, DBError>> + Send + 'async_trait, Global>>
    where
        'life0: 'async_trait,
        Self: 'async_trait
; }
Expand description

Get database connection

-

Associated Types

database connection type

-

Required methods

database specific error-type +

Associated Types

database connection type

+

Required methods

database specific error-type get connection from connection pool

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 7a00cbad..994dc0c6 100644 --- a/db_sqlx_postgres/prelude/ops/trait.Migrate.html +++ b/db_sqlx_postgres/prelude/ops/trait.Migrate.html @@ -4,10 +4,10 @@
pub trait Migrate: MCDatabase {
+    

Trait db_sqlx_postgres::prelude::ops::Migrate

source · []
pub trait Migrate: MCDatabase {
     fn migrate<'life0, 'async_trait>(
        &'life0 self
    ) -> Pin<Box<dyn Future<Output = Result<(), DBError>> + Send + 'async_trait, Global>>
    where
        'life0: 'async_trait,
        Self: 'async_trait
; }
Expand description

database migrations

-

Required methods

database specific error-type +

Required methods

database specific error-type run migrations

Implementors

\ No newline at end of file diff --git a/db_sqlx_postgres/prelude/struct.AddNotification.html b/db_sqlx_postgres/prelude/struct.AddNotification.html index 8df6a1b5..85b064c2 100644 --- a/db_sqlx_postgres/prelude/struct.AddNotification.html +++ b/db_sqlx_postgres/prelude/struct.AddNotification.html @@ -4,7 +4,7 @@
pub struct AddNotification<'a> {
+    

Struct db_sqlx_postgres::prelude::AddNotification

source · []
pub struct AddNotification<'a> {
     pub to: &'a str,
     pub from: &'a str,
     pub heading: &'a str,
@@ -14,16 +14,16 @@
 
from: &'a str

notification sender

heading: &'a str

heading of the notification

message: &'a str

mesage 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

-

Deserialize this value from the given Serde deserializer. Read more

-

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

+

Deserialize this value from the given Serde deserializer. Read more

+

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

-

This method tests for !=.

-

Serialize this value into the given Serde serializer. Read more

-

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

+

This method tests for !=.

+

Serialize this value into the given Serde serializer. Read more

+

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/prelude/struct.Captcha.html b/db_sqlx_postgres/prelude/struct.Captcha.html index a9873cb1..a3d53205 100644 --- a/db_sqlx_postgres/prelude/struct.Captcha.html +++ b/db_sqlx_postgres/prelude/struct.Captcha.html @@ -4,7 +4,7 @@
pub struct Captcha {
+    

Struct db_sqlx_postgres::prelude::Captcha

source · []
pub struct Captcha {
     pub config_id: i32,
     pub duration: i32,
     pub description: String,
@@ -14,16 +14,16 @@
 
duration: i32

cool down duration

description: String

description of the captcha

key: String

secret key of the captcha

-

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

-

Deserialize this value from the given Serde deserializer. Read more

-

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

+

Deserialize this value from the given Serde deserializer. Read more

+

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

-

This method tests for !=.

-

Serialize this value into the given Serde serializer. Read more

-

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

+

This method tests for !=.

+

Serialize this value into the given Serde serializer. Read more

+

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/prelude/struct.CreateCaptcha.html b/db_sqlx_postgres/prelude/struct.CreateCaptcha.html index 2e01fe19..5cf2a884 100644 --- a/db_sqlx_postgres/prelude/struct.CreateCaptcha.html +++ b/db_sqlx_postgres/prelude/struct.CreateCaptcha.html @@ -4,7 +4,7 @@
pub struct CreateCaptcha<'a> {
+    

Struct db_sqlx_postgres::prelude::CreateCaptcha

source · []
pub struct CreateCaptcha<'a> {
     pub duration: i32,
     pub description: &'a str,
     pub key: &'a str,
@@ -12,16 +12,16 @@
 

Fields

duration: i32

cool down duration

description: &'a str

description of the captcha

key: &'a str

secret key of the captcha

-

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

-

Deserialize this value from the given Serde deserializer. Read more

-

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

+

Deserialize this value from the given Serde deserializer. Read more

+

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

-

This method tests for !=.

-

Serialize this value into the given Serde serializer. Read more

-

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

+

This method tests for !=.

+

Serialize this value into the given Serde serializer. Read more

+

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/prelude/struct.NameHash.html b/db_sqlx_postgres/prelude/struct.NameHash.html index 433e2f8f..73026252 100644 --- a/db_sqlx_postgres/prelude/struct.NameHash.html +++ b/db_sqlx_postgres/prelude/struct.NameHash.html @@ -4,21 +4,21 @@
pub struct NameHash {
+    

Struct db_sqlx_postgres::prelude::NameHash

source · []
pub struct NameHash {
     pub username: String,
     pub hash: String,
 }
Expand description

type encapsulating username and hashed password of a user

Fields

username: String

username

hash: String

hashed password

-

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

-

Deserialize this value from the given Serde deserializer. Read more

-

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

Formats the value using the given formatter. Read more

+

Deserialize this value from the given Serde deserializer. Read more

+

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

-

This method tests for !=.

-

Serialize this value into the given Serde serializer. Read more

-

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

+

This method tests for !=.

+

Serialize this value into the given Serde serializer. Read more

+

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/prelude/struct.Notification.html b/db_sqlx_postgres/prelude/struct.Notification.html index b0bc5172..4bb076ea 100644 --- a/db_sqlx_postgres/prelude/struct.Notification.html +++ b/db_sqlx_postgres/prelude/struct.Notification.html @@ -4,7 +4,7 @@
pub struct Notification {
+    

Struct db_sqlx_postgres::prelude::Notification

source · []
pub struct Notification {
     pub name: Option<String>,
     pub heading: Option<String>,
     pub message: Option<String>,
@@ -16,17 +16,17 @@
 
message: Option<String>

message of the notification

received: Option<i64>

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

-

Deserialize this value from the given Serde deserializer. Read more

+

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.

-

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

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

-

This method tests for !=.

-

Serialize this value into the given Serde serializer. Read more

-

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

+

This method tests for !=.

+

Serialize this value into the given Serde serializer. Read more

+

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/prelude/struct.Register.html b/db_sqlx_postgres/prelude/struct.Register.html index 284ebdf5..ef5f908c 100644 --- a/db_sqlx_postgres/prelude/struct.Register.html +++ b/db_sqlx_postgres/prelude/struct.Register.html @@ -4,7 +4,7 @@
pub struct Register<'a> {
+    

Struct db_sqlx_postgres::prelude::Register

source · []
pub struct Register<'a> {
     pub username: &'a str,
     pub secret: &'a str,
     pub hash: &'a str,
@@ -14,15 +14,15 @@
 
secret: &'a str

secret of new user

hash: &'a str

hashed password of new use

email: Option<&'a str>

Optionally, email of new use

-

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

-

Deserialize this value from the given Serde deserializer. Read more

-

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

Formats the value using the given formatter. Read more

+

Deserialize this value from the given Serde deserializer. Read more

+

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

-

This method tests for !=.

-

Serialize this value into the given Serde serializer. Read more

-

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

+

This method tests for !=.

+

Serialize this value into the given Serde serializer. Read more

+

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/prelude/struct.Secret.html b/db_sqlx_postgres/prelude/struct.Secret.html index dc35e018..628b5289 100644 --- a/db_sqlx_postgres/prelude/struct.Secret.html +++ b/db_sqlx_postgres/prelude/struct.Secret.html @@ -4,20 +4,20 @@
pub struct Secret {
+    

Struct db_sqlx_postgres::prelude::Secret

source · []
pub struct Secret {
     pub secret: String,
 }
Expand description

datastructure representing a user’s secret

Fields

secret: String

user’s secret

-

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

-

Deserialize this value from the given Serde deserializer. Read more

-

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

+

Deserialize this value from the given Serde deserializer. Read more

+

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

-

This method tests for !=.

-

Serialize this value into the given Serde serializer. Read more

-

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

+

This method tests for !=.

+

Serialize this value into the given Serde serializer. Read more

+

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/prelude/struct.StatsUnixTimestamp.html b/db_sqlx_postgres/prelude/struct.StatsUnixTimestamp.html index fe0e386d..c00c6cbf 100644 --- a/db_sqlx_postgres/prelude/struct.StatsUnixTimestamp.html +++ b/db_sqlx_postgres/prelude/struct.StatsUnixTimestamp.html @@ -4,7 +4,7 @@
pub struct StatsUnixTimestamp {
+    

Struct db_sqlx_postgres::prelude::StatsUnixTimestamp

source · []
pub struct StatsUnixTimestamp {
     pub config_fetches: Vec<i64, Global>,
     pub solves: Vec<i64, Global>,
     pub confirms: Vec<i64, Global>,
@@ -12,16 +12,16 @@
 

Fields

config_fetches: Vec<i64, Global>

times at which the configuration were fetched

solves: Vec<i64, Global>

times at which the PoW was solved

confirms: Vec<i64, Global>

times at which the PoW token was verified

-

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

-

Deserialize this value from the given Serde deserializer. Read more

-

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

+

Deserialize this value from the given Serde deserializer. Read more

+

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

-

This method tests for !=.

-

Serialize this value into the given Serde serializer. Read more

-

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

+

This method tests for !=.

+

Serialize this value into the given Serde serializer. Read more

+

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/prelude/struct.TrafficPattern.html b/db_sqlx_postgres/prelude/struct.TrafficPattern.html index afd11b4a..c026db3a 100644 --- a/db_sqlx_postgres/prelude/struct.TrafficPattern.html +++ b/db_sqlx_postgres/prelude/struct.TrafficPattern.html @@ -4,7 +4,7 @@
pub struct TrafficPattern {
+    

Struct db_sqlx_postgres::prelude::TrafficPattern

source · []
pub struct TrafficPattern {
     pub avg_traffic: u32,
     pub peak_sustainable_traffic: u32,
     pub broke_my_site_traffic: Option<u32>,
@@ -12,16 +12,16 @@
 

Fields

avg_traffic: u32

average traffic of user’s website

peak_sustainable_traffic: u32

the peak traffic that the user’s website can handle

broke_my_site_traffic: Option<u32>

trafic that bought the user’s website down; optional

-

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

-

Deserialize this value from the given Serde deserializer. Read more

-

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

+

Deserialize this value from the given Serde deserializer. Read more

+

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

-

This method tests for !=.

-

Serialize this value into the given Serde serializer. Read more

-

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

+

This method tests for !=.

+

Serialize this value into the given Serde serializer. Read more

+

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/prelude/struct.UpdateEmail.html b/db_sqlx_postgres/prelude/struct.UpdateEmail.html index ff291f02..8a2658cf 100644 --- a/db_sqlx_postgres/prelude/struct.UpdateEmail.html +++ b/db_sqlx_postgres/prelude/struct.UpdateEmail.html @@ -4,21 +4,21 @@
pub struct UpdateEmail<'a> {
+    

Struct db_sqlx_postgres::prelude::UpdateEmail

source · []
pub struct UpdateEmail<'a> {
     pub username: &'a str,
     pub new_email: &'a str,
 }
Expand description

data required to update them email of a user

Fields

username: &'a str

username of the user

new_email: &'a str

new email address of the user

-

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

-

Deserialize this value from the given Serde deserializer. Read more

-

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

Formats the value using the given formatter. Read more

+

Deserialize this value from the given Serde deserializer. Read more

+

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

-

This method tests for !=.

-

Serialize this value into the given Serde serializer. Read more

-

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

+

This method tests for !=.

+

Serialize this value into the given Serde serializer. Read more

+

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/prelude/tests/fn.database_works.html b/db_sqlx_postgres/prelude/tests/fn.database_works.html index f9a4ee32..7ce3c818 100644 --- a/db_sqlx_postgres/prelude/tests/fn.database_works.html +++ b/db_sqlx_postgres/prelude/tests/fn.database_works.html @@ -4,6 +4,6 @@
pub async fn database_works<T>(
    db: &'_ T,
    p: &'_ Register<'a>,
    c: &'_ CreateCaptcha<'a>,
    l: &'_ [Level],
    tp: &'_ TrafficPattern,
    an: &'_ AddNotification<'a>
) where
    T: MCDatabase
Expand description

test all database functions

+

Function db_sqlx_postgres::prelude::tests::database_works

source · []
pub async fn database_works<T>(
    db: &'_ T,
    p: &'_ Register<'a>,
    c: &'_ CreateCaptcha<'a>,
    l: &'_ [Level],
    tp: &'_ TrafficPattern,
    an: &'_ AddNotification<'a>
) where
    T: MCDatabase
Expand description

test all database functions

\ No newline at end of file diff --git a/db_sqlx_postgres/prelude/tests/index.html b/db_sqlx_postgres/prelude/tests/index.html index 21dd2579..1874f649 100644 --- a/db_sqlx_postgres/prelude/tests/index.html +++ b/db_sqlx_postgres/prelude/tests/index.html @@ -4,7 +4,7 @@
Expand description

Test utilities

+

Module db_sqlx_postgres::prelude::tests

source · []
Expand description

Test utilities

Functions

test all database functions

diff --git a/db_sqlx_postgres/prelude/trait.CloneSPDatabase.html b/db_sqlx_postgres/prelude/trait.CloneSPDatabase.html index 845e62a1..f8b5fa6f 100644 --- a/db_sqlx_postgres/prelude/trait.CloneSPDatabase.html +++ b/db_sqlx_postgres/prelude/trait.CloneSPDatabase.html @@ -4,9 +4,9 @@
pub trait CloneSPDatabase {
+    

Trait db_sqlx_postgres::prelude::CloneSPDatabase

source · []
pub trait CloneSPDatabase {
     fn clone_db(&self) -> Box<dyn MCDatabase + 'static, Global>;
 }
Expand description

Trait to clone MCDatabase

-

Required methods

clone DB

-

Implementors

+

Required methods

clone DB

+

Implementors

\ No newline at end of file diff --git a/db_sqlx_postgres/prelude/trait.Connect.html b/db_sqlx_postgres/prelude/trait.Connect.html index aa008f16..71f14f44 100644 --- a/db_sqlx_postgres/prelude/trait.Connect.html +++ b/db_sqlx_postgres/prelude/trait.Connect.html @@ -4,12 +4,12 @@
pub trait Connect {
+    

Trait db_sqlx_postgres::prelude::Connect

source · []
pub trait Connect {
     type Pool: MCDatabase;
     fn connect<'async_trait>(
        self
    ) -> Pin<Box<dyn Future<Output = Result<Self::Pool, DBError>> + Send + 'async_trait, Global>>
    where
        Self: 'async_trait
; }
Expand description

Create databse connection

-

Associated Types

database specific pool-type

-

Required methods

database specific error-type +

Associated Types

database specific pool-type

+

Required methods

database specific error-type create connection pool

Implementors

\ No newline at end of file diff --git a/db_sqlx_postgres/prelude/trait.DBOps.html b/db_sqlx_postgres/prelude/trait.DBOps.html index 190131ac..1d8541cc 100644 --- a/db_sqlx_postgres/prelude/trait.DBOps.html +++ b/db_sqlx_postgres/prelude/trait.DBOps.html @@ -4,6 +4,6 @@
pub trait DBOps: GetConnection + Migrate { }
Expand description

Database operations trait(migrations, pool creation and fetching connection from pool)

+

Trait db_sqlx_postgres::prelude::DBOps

source · []
pub trait DBOps: GetConnection + Migrate { }
Expand description

Database operations trait(migrations, pool creation and fetching connection from pool)

Implementors

\ No newline at end of file diff --git a/db_sqlx_postgres/prelude/trait.GetConnection.html b/db_sqlx_postgres/prelude/trait.GetConnection.html index 38f41604..71246d52 100644 --- a/db_sqlx_postgres/prelude/trait.GetConnection.html +++ b/db_sqlx_postgres/prelude/trait.GetConnection.html @@ -4,12 +4,12 @@
pub trait GetConnection {
+    

Trait db_sqlx_postgres::prelude::GetConnection

source · []
pub trait GetConnection {
     type Conn;
     fn get_conn<'life0, 'async_trait>(
        &'life0 self
    ) -> Pin<Box<dyn Future<Output = Result<Self::Conn, DBError>> + Send + 'async_trait, Global>>
    where
        'life0: 'async_trait,
        Self: 'async_trait
; }
Expand description

Get database connection

-

Associated Types

database connection type

-

Required methods

database specific error-type +

Associated Types

database connection type

+

Required methods

database specific error-type get connection from connection pool

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 e9a560bc..2e9e435a 100644 --- a/db_sqlx_postgres/prelude/trait.MCDatabase.html +++ b/db_sqlx_postgres/prelude/trait.MCDatabase.html @@ -4,7 +4,7 @@
pub trait MCDatabase: Send + Sync + CloneSPDatabase {
+    

Trait db_sqlx_postgres::prelude::MCDatabase

source · []
pub trait MCDatabase: Send + Sync + CloneSPDatabase {
 
Show 35 methods fn ping<'life0, 'async_trait>(
        &'life0 self
    ) -> Pin<Box<dyn Future<Output = bool> + Send + 'async_trait, Global>>
    where
        'life0: 'async_trait,
        Self: 'async_trait
; fn register<'life0, 'life1, 'async_trait>(
        &'life0 self,
        p: &'life1 Register<'_>
    ) -> Pin<Box<dyn Future<Output = Result<(), DBError>> + Send + 'async_trait, Global>>
    where
        'life0: 'async_trait,
        'life1: 'async_trait,
        Self: 'async_trait
; fn delete_user<'life0, 'life1, 'async_trait>(
        &'life0 self,
        username: &'life1 str
    ) -> Pin<Box<dyn Future<Output = Result<(), DBError>> + Send + 'async_trait, Global>>
    where
        'life0: 'async_trait,
        'life1: 'async_trait,
        Self: 'async_trait
; @@ -42,40 +42,40 @@ fn fetch_confirm<'life0, 'life1, 'life2, 'async_trait>(
        &'life0 self,
        user: &'life1 str,
        key: &'life2 str
    ) -> Pin<Box<dyn Future<Output = Result<Vec<i64, Global>, DBError>> + Send + 'async_trait, Global>>
    where
        'life0: 'async_trait,
        'life1: 'async_trait,
        'life2: 'async_trait,
        Self: 'async_trait
;
}
Expand description

mCaptcha’s database requirements. To implement support for $Database, kindly implement this trait.

-

Required methods

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

-

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

-

featch PoWConfig fetches

-

featch PoWConfig solves

-

featch PoWConfig confirms

+

Required methods

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

+

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

+

featch PoWConfig fetches

+

featch PoWConfig solves

+

featch PoWConfig confirms

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 5ff744b1..0af143eb 100644 --- a/db_sqlx_postgres/prelude/trait.Migrate.html +++ b/db_sqlx_postgres/prelude/trait.Migrate.html @@ -4,10 +4,10 @@
pub trait Migrate: MCDatabase {
+    

Trait db_sqlx_postgres::prelude::Migrate

source · []
pub trait Migrate: MCDatabase {
     fn migrate<'life0, 'async_trait>(
        &'life0 self
    ) -> Pin<Box<dyn Future<Output = Result<(), DBError>> + Send + 'async_trait, Global>>
    where
        'life0: 'async_trait,
        Self: 'async_trait
; }
Expand description

database migrations

-

Required methods

database specific error-type +

Required methods

database specific error-type run migrations

Implementors

\ No newline at end of file diff --git a/db_sqlx_postgres/prelude/type.BoxDynError.html b/db_sqlx_postgres/prelude/type.BoxDynError.html index 7f44abc9..9c2d9589 100644 --- a/db_sqlx_postgres/prelude/type.BoxDynError.html +++ b/db_sqlx_postgres/prelude/type.BoxDynError.html @@ -4,6 +4,6 @@
pub type BoxDynError = Box<dyn Error + Send + Sync + 'static, Global>;
Expand description

Convenience type alias for grouping driver-specific errors

+

Type Definition db_sqlx_postgres::prelude::BoxDynError

source · []
pub type BoxDynError = Box<dyn Error + Send + Sync + 'static, Global>;
Expand description

Convenience type alias for grouping driver-specific errors

\ No newline at end of file diff --git a/db_sqlx_postgres/prelude/type.DBResult.html b/db_sqlx_postgres/prelude/type.DBResult.html index 2f0b67c7..dd1f6965 100644 --- a/db_sqlx_postgres/prelude/type.DBResult.html +++ b/db_sqlx_postgres/prelude/type.DBResult.html @@ -4,6 +4,6 @@
pub type DBResult<V> = Result<V, DBError>;
Expand description

Generic result data structure

+

Type Definition db_sqlx_postgres::prelude::DBResult

source · []
pub type DBResult<V> = Result<V, DBError>;
Expand description

Generic result data structure

\ No newline at end of file diff --git a/db_sqlx_postgres/struct.Database.html b/db_sqlx_postgres/struct.Database.html index 041c0888..50a3f8a7 100644 --- a/db_sqlx_postgres/struct.Database.html +++ b/db_sqlx_postgres/struct.Database.html @@ -48,7 +48,7 @@ run migrations Read more

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

-

clone DB

+

clone DB

Returns the argument unchanged.

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more

diff --git a/mcaptcha/constant.COMPILED_DATE.html b/mcaptcha/constant.COMPILED_DATE.html index fb9465e5..3793ab21 100644 --- a/mcaptcha/constant.COMPILED_DATE.html +++ b/mcaptcha/constant.COMPILED_DATE.html @@ -4,5 +4,5 @@
pub const COMPILED_DATE: &str = "22-06-07";
+

Constant mcaptcha::COMPILED_DATE

source · []
pub const COMPILED_DATE: &str = "22-06-08";
\ No newline at end of file