diff --git a/db_sqlx_postgres/dev/dev/enum.DBError.html b/db_sqlx_postgres/dev/dev/enum.DBError.html index 4301b80c..039b702f 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

[]
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 1230ec23..30ef175f 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

[]
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 21a2a0ae..8a985a47 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

[]
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 632e64e0..0bbe145b 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

[]
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 00a1a57c..16c294c2 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

[]
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 8a29732f..c8402530 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

[]
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 4f0e555b..195aa889 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

[]
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 a1e266f8..b062bc9a 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

[]
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 ca814d86..397eeb84 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

[]
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 8cec30d6..338aae5f 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

[]
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 e884fc27..93944f7d 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

[]
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 bf30c153..fb48c10c 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

[]
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 43456794..b75a88f8 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

[]
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 85f2f1bb..1648e190 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

[]
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 f98dfbde..3cd24738 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

[]
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 bb81aa62..8a52ece6 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

[]
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 507aca7a..4d3df2c4 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

[]
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 7a3fbc94..50036431 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

[]
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 48d247c6..e42994ab 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

[]
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 3478718f..8a0a4ab0 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

[]
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 cbe2901c..53e535cd 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

[]
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 cd2d76ac..f606f632 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

[]
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 00de945c..6fd578ee 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

[]
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 d2670082..14639276 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

[]
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 43b3d9c2..5980d61e 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

[]
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 9c862619..386639df 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

[]
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 0f521b8d..b4a64e6d 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

[]
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 4a4b5d7d..1bca5924 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

[]
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 40fb1a97..cc7180dc 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

[]
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 18b6669f..660b398e 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

[]
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 f79aa3e2..dd3964c0 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

[]
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 02fbfeb7..f9991cbc 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

[]
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 cca0d842..64f5f1f9 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

[]
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 86148273..997c2fb2 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

[]
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 8397b2bf..c1ea0ad3 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

[]
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 7252ae45..27e05f55 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

[]
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 f96f2496..15ff9c02 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

[]
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 31c76825..21c577c3 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

[]
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 a48c7018..9532df4a 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

[]
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 35e26230..fb12c203 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

[]
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 a10beb32..96279b07 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

[]
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 d5107dee..d3fe3d7d 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

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

Generic result data structure

+

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

[]
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 52b011cb..3ebb7c26 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

[]
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 0cea8352..91386eea 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

[]
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 e9b75da3..4ec5e61c 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

[]
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 302eb919..b1b909f5 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

[]
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 20243e09..e099e369 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

[]
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 f7626d69..d1530d28 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

[]
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 29cfbacd..9131440e 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

[]
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 a20403e2..948073db 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

[]
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 e38b2e42..7bfa3941 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

[]
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 d07e4b63..fa7ac05b 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

[]
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 f6829e14..c4967727 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

[]
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 c62f08b1..43bcae32 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

[]
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 97af9930..948b9568 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

[]
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 b1cdf456..595c262e 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

[]
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 402cf80a..51e4b4fa 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

[]
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 1e0c7469..5792ac43 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

[]
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 efd099c8..36c2efd6 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

[]
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 b6ab2191..c2821473 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

[]
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 6e8f3751..f5603052 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

[]
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 a448f8d0..bf6e3e1d 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

[]
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 091dd744..6edc18d9 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

[]
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 9fc611c1..d3754e13 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

[]
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 faf36bb5..25a65d08 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

[]
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 75aad361..1e8daee6 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

[]
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 68767bb1..ee34c1d1 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

[]
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 8a3b472d..ea803a55 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

[]
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 38b27dc2..349eeba5 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

[]
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 d2872064..a653f69b 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

[]
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 d5a89891..f069c55f 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

[]
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 d65837d2..bc223f22 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

[]
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 9c2f49fd..ab411d6a 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

[]
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 abf3efd6..902b2bea 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

[]
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 25e8f3b3..c51e3bff 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

[]
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 add6666a..4f1299ee 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

[]
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 9eee0aec..ac80368b 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

[]
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 0d5a94d7..369c091d 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

[]
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 1c75b7b9..a9227480 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

[]
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 32b04ef7..c0b46a68 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

[]
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 4f786c1d..0bb79f0e 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

[]
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 2e7fed48..e456670d 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

[]
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 0a62d2e2..bf2f1a1e 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

[]
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 e20c6825..dc63eb77 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

[]
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 73c872f4..e60e89e5 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

[]
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 5a81069a..b92b368a 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

[]
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 8b9b71c6..b17369b4 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

[]
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 cb559506..74e6ab8a 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

[]
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 96497b76..259be5df 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

[]
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 3e75202d..0172e3f3 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

[]
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 33159835..f4201f81 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

[]
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 fee67e54..6a173dd4 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

[]
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 0af30bfa..31b70631 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

[]
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 d672f33e..7f1bc902 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

[]
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 7cc786a0..5a2a7be0 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

[]
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 b1b53e26..4b0ed450 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

[]
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 8014f100..b7e13845 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

[]
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 490e65f5..54d61c55 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

[]
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 4094b1c1..3b5a94e4 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

[]
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 f904756e..ed456b32 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

[]
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 31173b1b..2c05297e 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

[]
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 a1eeb3b7..b06fce4f 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

[]
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 1915880f..a8568108 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

[]
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 257077f0..d9e12754 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

[]
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 dabc4fa9..5230257a 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

[]
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 f0dcad41..26684edb 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

[]
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 71bf5422..139e80eb 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

[]
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 71775278..57648c28 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

[]
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 b12e0f1e..2efbe0ee 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

[]
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 dd0c5f80..67553795 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

[]
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 c75c80ac..5cf911fc 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

[]
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 b604e28a..06f86840 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

[]
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 4aca0261..6a784b4b 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

[]
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 49c24238..5c19a231 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

[]
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 2770c069..87efc35b 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

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

Generic result data structure

+

Type Definition db_sqlx_postgres::dev::DBResult

[]
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 4876d913..d09ac1f9 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

[]
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 f37b42f1..c6cd64e7 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

[]
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 52da9bbf..deb225d4 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

[]
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 29db01e9..bf666cb6 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

[]
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 f3298f60..4b133cdb 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

[]
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 95bd0680..c5197c4f 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

[]
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 464e5cb6..e6f727d5 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

[]
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 2d029b42..c28c3de0 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

[]
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 f1ede6c3..d1edc740 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

[]
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 ccda2be9..327c13d6 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

[]
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 58ee0245..37dc6170 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

[]
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 dca92078..40ac517d 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

[]
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 7512f915..e3a8e59b 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

[]
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 9eaee11a..940f38ff 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

[]
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 56d8b5f4..7688e495 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

[]
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 d065f133..76280c51 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

[]
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 1c5a55e0..0b394739 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

[]
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 6ec01f48..9215ef62 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

[]
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 e82ba5c2..033b9dd1 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

[]
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 79f82c07..715ede31 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

[]
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 030cd03e..eb0f0abe 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 82b331e2..7f2c4a6a 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

[]
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 e3dc9509..4438131d 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

[]
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 856fbd1f..97c1d320 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

[]
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 91549726..7f241c3e 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

[]
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 9571faed..08795555 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

[]
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 010cc19a..11c701e2 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

[]
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 dfa09761..4828cc51 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

[]
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 bc7f94c6..39c1eeb8 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

[]
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 3d0c1fcd..88e2bc0f 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

[]
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 25847862..c543d1cb 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

[]
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 e2f1a19f..f6ea00e2 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

[]
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 341ea3cd..384b5105 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

[]
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 2ca57db0..c1ceff02 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

[]
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 153c9d54..2cfc2a23 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

[]
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 c06ea6ef..6d6fc349 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

[]
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 b18a4574..9815690e 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

[]
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 2a2126bc..5d43c848 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

[]
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 fcd0c7be..df4e8429 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

[]
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 29d1982d..1139f8df 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

[]
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 dc62ec8e..7ddadeb6 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

[]
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 da4555dd..053bad3a 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

[]
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 a7db707f..42c764ad 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

[]
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 c9cdad49..1f7e5826 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

[]
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 3050beb6..6356d70f 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

[]
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 5c0afee6..a031c052 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

[]
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 a1b3ff97..a6c69c81 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

[]
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 93aa17ad..f9991b3a 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

[]
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 dc16ac1c..bab31d80 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

[]
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 309092b4..5c5cc951 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

[]
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 eb3ae8f8..d6862b74 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

[]
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 2ec1ae13..66cb7853 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

[]
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 994dc0c6..7a00cbad 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

[]
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 85b064c2..8df6a1b5 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

[]
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 a3d53205..a9873cb1 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

[]
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 5cf2a884..2e01fe19 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

[]
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 73026252..433e2f8f 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

[]
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 4bb076ea..b0bc5172 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

[]
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 ef5f908c..284ebdf5 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

[]
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 628b5289..dc35e018 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

[]
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 c00c6cbf..fe0e386d 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

[]
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 c026db3a..afd11b4a 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

[]
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 8a2658cf..ff291f02 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

[]
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 7ce3c818..f9a4ee32 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

[]
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 1874f649..21dd2579 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

[]
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 f8b5fa6f..845e62a1 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

[]
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 71f14f44..aa008f16 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

[]
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 1d8541cc..190131ac 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

[]
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 71246d52..38f41604 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

[]
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 2e9e435a..e9a560bc 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

[]
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 0af143eb..5ff744b1 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

[]
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 9c2d9589..7f44abc9 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

[]
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 dd1f6965..2f0b67c7 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

[]
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 50a3f8a7..041c0888 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 e4eaa3a7..fb9465e5 100644 --- a/mcaptcha/constant.COMPILED_DATE.html +++ b/mcaptcha/constant.COMPILED_DATE.html @@ -4,5 +4,5 @@
pub const COMPILED_DATE: &str = "22-06-06";
+

Constant mcaptcha::COMPILED_DATE

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