List of all items
Structs
- AddNotification
- Captcha
- CreateCaptcha
- CreatePerformanceAnalytics
- EasyCaptcha
- Level
- NameHash
- Notification
- PerformanceAnalytics
- Register
- Secret
- StatsUnixTimestamp
- TrafficPattern
- UpdateEmail
From ebebaa26a915643f93839e0ec6c99bdf7103cd7d Mon Sep 17 00:00:00 2001
From: realaravinth types of credentials used as identifiers during login Captcha not found Traffic pattern not found Notification not foundList of all items
Structs
Enums
Traits
Attribute Macros
Functions
Type Aliases
Constants
List of all items
Structs
Enums
Traits
Attribute Macros
Functions
Type Aliases
Constants
Attribute Macro db_core::
#[async_trait]#[async_trait]pub enum Login<'a> {
- Username(&'a str),
- Email(&'a str),
+pub enum Login<'a> {
+ Username(&'a str),
+ Email(&'a str),
}Expand description
Variants§
Trait Implementations§
impl<'de: 'a, 'a> Deserialize<'de> for Login<'a>
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>
impl<'a> PartialEq for Login<'a>
impl<'a> StructuralPartialEq for Login<'a>
Auto Trait Implementations§
impl<'a> RefUnwindSafe for Login<'a>
impl<'a> Send for Login<'a>
impl<'a> Sync for Login<'a>
impl<'a> Unpin for Login<'a>
impl<'a> UnwindSafe for Login<'a>
Blanket Implementations§
impl<T> BorrowMut<T> for T
fn borrow_mut(&mut self) -> &mut T
impl<T> Instrument for T
fn instrument(self, span: Span) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
impl<T, U> Into<U> for T
Variants§
Trait Implementations§
impl<'de: 'a, 'a> Deserialize<'de> for Login<'a>
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>
impl<'a> StructuralPartialEq for Login<'a>
Auto Trait Implementations§
impl<'a> Freeze for Login<'a>
impl<'a> RefUnwindSafe for Login<'a>
impl<'a> Send for Login<'a>
impl<'a> Sync for Login<'a>
impl<'a> Unpin for Login<'a>
impl<'a> UnwindSafe for Login<'a>
Blanket Implementations§
impl<T> BorrowMut<T> for T
fn borrow_mut(&mut self) -> &mut T
impl<T> CloneToUninit for T
impl<T> WithSubscriber for T
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
fn with_current_subscriber(self) -> WithDispatch<Self>
impl<T> DeserializeOwned for T
From<T> for U chooses to do.
+impl<T> DeserializeOwned for T
impl<T> ErasedDestructor for T
impl<T> MaybeSendSync for T
pub enum DBError {
+pub enum DBError {
DBError(BoxDynError),
UsernameTaken,
EmailTaken,
@@ -19,21 +18,17 @@
CaptchaNotFound
TrafficPatternNotFound
NotificationNotFound
Trait Implementations§
impl Error for DBError
fn source(&self) -> Option<&(dyn Error + 'static)>
fn description(&self) -> &str
Auto Trait Implementations§
impl !RefUnwindSafe for DBError
impl Send for DBError
impl Sync for DBError
impl Unpin for DBError
impl !UnwindSafe for DBError
Blanket Implementations§
impl<T> BorrowMut<T> for T
fn borrow_mut(&mut self) -> &mut T
impl<T> Instrument for T
fn instrument(self, span: Span) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
impl<T, U> Into<U> for T
Trait Implementations§
impl Error for DBError
fn source(&self) -> Option<&(dyn Error + 'static)>
fn description(&self) -> &str
Auto Trait Implementations§
impl Freeze for DBError
impl !RefUnwindSafe for DBError
impl Send for DBError
impl Sync for DBError
impl Unpin for DBError
impl !UnwindSafe for DBError
Blanket Implementations§
impl<T> BorrowMut<T> for T
fn borrow_mut(&mut self) -> &mut T
impl<T> WithSubscriber for T
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
fn with_current_subscriber(self) -> WithDispatch<Self>
From<T> for U chooses to do.
pub type DBResult<V> = Result<V, DBError>;Generic result data structure
-enum DBResult<V> {
+DBResult in db_core::errors - Rust pub type DBResult<V> = Result<V, DBError>;
Expand description
Generic result data structure
+Aliased Type§
pub enum DBResult<V> {
Ok(V),
Err(DBError),
}
Variants§
§1.0.0Ok(V)
Contains the success value
diff --git a/db_core/index.html b/db_core/index.html
index 1209d695..c530149f 100644
--- a/db_core/index.html
+++ b/db_core/index.html
@@ -1,6 +1,4 @@
-db_core - Rust
- Expand description
§mCaptcha database operations
+db_core - Rust Expand description
§mCaptcha database operations
Traits and datastructures used in mCaptcha to interact with database.
To use an unsupported database with mCaptcha, traits present within this crate should be
implemented.
@@ -11,5 +9,5 @@ implemented.
ops: meta operations like connection pool creation, migrations and getting
connection from pool
-Re-exports§
pub use ops::GetConnection;
Modules§
- useful imports for supporting a new database
- represents all the ways a trait can fail using this crate
- meta operations like migration and connecting to a database
- useful imports for users working with a supported database
- Test utilities
Structs§
- Data required to add notification
- Data representing a captcha
- data required to create new captcha
- Log Proof-of-Work CAPTCHA performance analytics
- Represents Easy captcha configuration
- Level struct that describes threshold-difficulty factor mapping
- type encapsulating username and hashed password of a user
- Represents notification
- Proof-of-Work CAPTCHA performance analytics
- Data required to register a new user
- datastructure representing a user’s secret
- Captcha statistics with time recorded in UNIX epoch formats
- User’s traffic pattern; used in generating a captcha configuration
- data required to update them email of a user
Enums§
- types of credentials used as identifiers during login
Traits§
- Trait to clone MCDatabase
- mCaptcha’s database requirements. To implement support for $Database, kindly implement this
-trait.
\ No newline at end of file
+Re-exports§
pub use ops::GetConnection;
Modules§
- dev
- useful imports for supporting a new database
- errors
- represents all the ways a trait can fail using this crate
- ops
- meta operations like migration and connecting to a database
- prelude
- useful imports for users working with a supported database
- tests
- Test utilities
Structs§
- AddNotification
- Data required to add notification
- Captcha
- Data representing a captcha
- Create
Captcha - data required to create new captcha
- Create
PerformanceAnalytics - Log Proof-of-Work CAPTCHA performance analytics
- Easy
Captcha - Represents Easy captcha configuration
- Level
- Level struct that describes threshold-difficulty factor mapping
- Name
Hash - type encapsulating username and hashed password of a user
- Notification
- Represents notification
- Performance
Analytics - Proof-of-Work CAPTCHA performance analytics
- Register
- Data required to register a new user
- Secret
- datastructure representing a user’s secret
- Stats
UnixTimestamp - Captcha statistics with time recorded in UNIX epoch formats
- Traffic
Pattern - User’s traffic pattern; used in generating a captcha configuration
- Update
Email - data required to update them email of a user
Enums§
- Login
- types of credentials used as identifiers during login
Traits§
- CloneSP
Database - Trait to clone MCDatabase
- MCDatabase
- mCaptcha’s database requirements. To implement support for $Database, kindly implement this
+trait.
\ No newline at end of file
diff --git a/db_core/ops/index.html b/db_core/ops/index.html
index b3b08477..c8094385 100644
--- a/db_core/ops/index.html
+++ b/db_core/ops/index.html
@@ -1,3 +1,2 @@
-db_core::ops - Rust
- Expand description
meta operations like migration and connecting to a database
-Traits§
- Create database connection
- Database operations trait(migrations, pool creation and fetching connection from pool)
- Get database connection
- database migrations
\ No newline at end of file
+db_core::ops - Rust
\ No newline at end of file
diff --git a/db_core/ops/trait.Connect.html b/db_core/ops/trait.Connect.html
index ad63f711..06652d98 100644
--- a/db_core/ops/trait.Connect.html
+++ b/db_core/ops/trait.Connect.html
@@ -1,17 +1,16 @@
-Connect in db_core::ops - Rust
- pub trait Connect {
+Connect in db_core::ops - Rust pub trait Connect {
type Pool: MCDatabase;
// Required method
fn connect<'async_trait>(
- self
- ) -> Pin<Box<dyn Future<Output = DBResult<Self::Pool>> + Send + 'async_trait>>
+ self,
+ ) -> Pin<Box<dyn Future<Output = DBResult<Self::Pool>> + Send + 'async_trait>>
where Self: 'async_trait;
}
Expand description
Create database connection
-Required Associated Types§
sourcetype Pool: MCDatabase
database specific pool-type
-Required Methods§
sourcefn connect<'async_trait>(
- self
-) -> Pin<Box<dyn Future<Output = DBResult<Self::Pool>> + Send + 'async_trait>>where
+
Required Associated Types§
Sourcetype Pool: MCDatabase
database specific pool-type
+Required Methods§
Implementors§
\ No newline at end of file
diff --git a/db_core/ops/trait.DBOps.html b/db_core/ops/trait.DBOps.html
index feb21954..2a4025f3 100644
--- a/db_core/ops/trait.DBOps.html
+++ b/db_core/ops/trait.DBOps.html
@@ -1,3 +1,2 @@
-DBOps in db_core::ops - Rust
- pub trait DBOps: GetConnection + Migrate { }
Expand description
Database operations trait(migrations, pool creation and fetching connection from pool)
+DBOps in db_core::ops - Rust 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_core/ops/trait.GetConnection.html b/db_core/ops/trait.GetConnection.html
index 7650ea9e..a1bd635b 100644
--- a/db_core/ops/trait.GetConnection.html
+++ b/db_core/ops/trait.GetConnection.html
@@ -1,18 +1,17 @@
-GetConnection in db_core::ops - Rust
- Trait db_core::ops::GetConnection
source · pub trait GetConnection {
+GetConnection in db_core::ops - Rust pub trait GetConnection {
type Conn;
// Required method
fn get_conn<'life0, 'async_trait>(
- &'life0 self
- ) -> Pin<Box<dyn Future<Output = DBResult<Self::Conn>> + Send + 'async_trait>>
+ &'life0 self,
+ ) -> Pin<Box<dyn Future<Output = DBResult<Self::Conn>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
}
Expand description
Get database connection
-Required Associated Types§
Required Methods§
sourcefn get_conn<'life0, 'async_trait>(
- &'life0 self
-) -> Pin<Box<dyn Future<Output = DBResult<Self::Conn>> + Send + 'async_trait>>where
+
Required Associated Types§
Required Methods§
Sourcefn get_conn<'life0, 'async_trait>(
+ &'life0 self,
+) -> Pin<Box<dyn Future<Output = DBResult<Self::Conn>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
database specific error-type
get connection from connection pool
diff --git a/db_core/ops/trait.Migrate.html b/db_core/ops/trait.Migrate.html
index 2af01596..28532905 100644
--- a/db_core/ops/trait.Migrate.html
+++ b/db_core/ops/trait.Migrate.html
@@ -1,15 +1,14 @@
-Migrate in db_core::ops - Rust
- pub trait Migrate: MCDatabase {
+Migrate in db_core::ops - Rust pub trait Migrate: MCDatabase {
// Required method
fn migrate<'life0, 'async_trait>(
- &'life0 self
- ) -> Pin<Box<dyn Future<Output = DBResult<()>> + Send + 'async_trait>>
+ &'life0 self,
+ ) -> Pin<Box<dyn Future<Output = DBResult<()>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
}
Expand description
database migrations
-Required Methods§
sourcefn migrate<'life0, 'async_trait>(
- &'life0 self
-) -> Pin<Box<dyn Future<Output = DBResult<()>> + Send + 'async_trait>>where
+
Required Methods§
Sourcefn migrate<'life0, 'async_trait>(
+ &'life0 self,
+) -> Pin<Box<dyn Future<Output = DBResult<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
database specific error-type
run migrations
diff --git a/db_core/prelude/index.html b/db_core/prelude/index.html
index e0cd95e1..00cd4e8e 100644
--- a/db_core/prelude/index.html
+++ b/db_core/prelude/index.html
@@ -1,3 +1,2 @@
-db_core::prelude - Rust
-
\ No newline at end of file
+db_core::prelude - Rust
\ No newline at end of file
diff --git a/db_core/struct.AddNotification.html b/db_core/struct.AddNotification.html
index a98b8554..6522d675 100644
--- a/db_core/struct.AddNotification.html
+++ b/db_core/struct.AddNotification.html
@@ -1,34 +1,29 @@
-AddNotification in db_core - Rust
- Struct db_core::AddNotification
source · pub struct AddNotification<'a> {
- pub to: &'a str,
- pub from: &'a str,
- pub heading: &'a str,
- pub message: &'a str,
+AddNotification in db_core - Rust pub struct AddNotification<'a> {
+ pub to: &'a str,
+ pub from: &'a str,
+ pub heading: &'a str,
+ pub message: &'a str,
}
Expand description
Data required to add notification
-Fields§
§to: &'a strwho is the notification addressed to?
-§from: &'a strnotification sender
-§heading: &'a strheading of the notification
-§message: &'a strmessage of the notification
-Trait Implementations§
source§impl<'a> Clone for AddNotification<'a>
source§fn clone(&self) -> AddNotification<'a>
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source. Read moresource§impl<'a> Debug for AddNotification<'a>
source§impl<'a> Default for AddNotification<'a>
source§fn default() -> AddNotification<'a>
Returns the “default value” for a type. Read moresource§impl<'de: 'a, 'a> Deserialize<'de> for AddNotification<'a>
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
- __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl<'a> PartialEq for AddNotification<'a>
source§fn eq(&self, other: &AddNotification<'a>) -> bool
This method tests for self and other values to be equal, and is used
-by ==.source§impl<'a> Serialize for AddNotification<'a>
source§impl<'a> StructuralPartialEq for AddNotification<'a>
Auto Trait Implementations§
§impl<'a> RefUnwindSafe for AddNotification<'a>
§impl<'a> Send for AddNotification<'a>
§impl<'a> Sync for AddNotification<'a>
§impl<'a> Unpin for AddNotification<'a>
§impl<'a> UnwindSafe for AddNotification<'a>
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
- T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read moresource§impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
source§impl<T, U> Into<U> for Twhere
- U: From<T>,
Fields§
§to: &'a strwho is the notification addressed to?
+§from: &'a strnotification sender
+§heading: &'a strheading of the notification
+§message: &'a strmessage of the notification
+Trait Implementations§
Source§impl<'a> Clone for AddNotification<'a>
Source§fn clone(&self) -> AddNotification<'a>
Returns a duplicate of the value. Read more1.0.0 · Source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source. Read moreSource§impl<'a> Debug for AddNotification<'a>
Source§impl<'a> Default for AddNotification<'a>
Source§fn default() -> AddNotification<'a>
Returns the “default value” for a type. Read moreSource§impl<'de: 'a, 'a> Deserialize<'de> for AddNotification<'a>
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
+ __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moreSource§impl<'a> PartialEq for AddNotification<'a>
Source§impl<'a> Serialize for AddNotification<'a>
Source§impl<'a> StructuralPartialEq for AddNotification<'a>
Auto Trait Implementations§
§impl<'a> Freeze for AddNotification<'a>
§impl<'a> RefUnwindSafe for AddNotification<'a>
§impl<'a> Send for AddNotification<'a>
§impl<'a> Sync for AddNotification<'a>
§impl<'a> Unpin for AddNotification<'a>
§impl<'a> UnwindSafe for AddNotification<'a>
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
+ T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read moreSource§impl<T> CloneToUninit for Twhere
+ T: Clone,
source§impl<T> WithSubscriber for T
source§fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>where
- S: Into<Dispatch>,
source§fn with_current_subscriber(self) -> WithDispatch<Self>
source§impl<T> DeserializeOwned for Twhere
- T: for<'de> Deserialize<'de>,
\ No newline at end of file
+From<T> for U chooses to do.
+Source§impl<T> DeserializeOwned for Twhere
+ T: for<'de> Deserialize<'de>,
§impl<T> ErasedDestructor for Twhere
+ T: 'static,
§impl<T> MaybeSendSync for T
\ No newline at end of file
diff --git a/db_core/struct.Captcha.html b/db_core/struct.Captcha.html
index 7dd5480a..b8df2f63 100644
--- a/db_core/struct.Captcha.html
+++ b/db_core/struct.Captcha.html
@@ -1,34 +1,29 @@
-Captcha in db_core - Rust
- pub struct Captcha {
- pub config_id: i32,
- pub duration: i32,
- pub description: String,
- pub key: String,
+Captcha in db_core - Rust pub struct Captcha {
+ pub config_id: i32,
+ pub duration: i32,
+ pub description: String,
+ pub key: String,
}
Expand description
Data representing a captcha
-Fields§
§config_id: i32Database assigned ID
-§duration: i32cool down duration
-§description: Stringdescription of the captcha
-§key: Stringsecret key of the captcha
-Trait Implementations§
source§impl<'de> Deserialize<'de> for Captcha
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
- __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl PartialEq for Captcha
source§impl StructuralPartialEq for Captcha
Auto Trait Implementations§
§impl RefUnwindSafe for Captcha
§impl Send for Captcha
§impl Sync for Captcha
§impl Unpin for Captcha
§impl UnwindSafe for Captcha
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
- T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read moresource§impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
source§impl<T, U> Into<U> for Twhere
- U: From<T>,
Fields§
§config_id: i32Database assigned ID
+§duration: i32cool down duration
+§description: Stringdescription of the captcha
+§key: Stringsecret key of the captcha
+Trait Implementations§
Source§impl<'de> Deserialize<'de> for Captcha
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
+ __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moreSource§impl StructuralPartialEq for Captcha
Auto Trait Implementations§
§impl Freeze for Captcha
§impl RefUnwindSafe for Captcha
§impl Send for Captcha
§impl Sync for Captcha
§impl Unpin for Captcha
§impl UnwindSafe for Captcha
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
+ T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read moreSource§impl<T> CloneToUninit for Twhere
+ T: Clone,
source§impl<T> WithSubscriber for T
source§fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>where
- S: Into<Dispatch>,
source§fn with_current_subscriber(self) -> WithDispatch<Self>
source§impl<T> DeserializeOwned for Twhere
- T: for<'de> Deserialize<'de>,
\ No newline at end of file
+From<T> for U chooses to do.
+Source§impl<T> DeserializeOwned for Twhere
+ T: for<'de> Deserialize<'de>,
§impl<T> ErasedDestructor for Twhere
+ T: 'static,
§impl<T> MaybeSendSync for T
\ No newline at end of file
diff --git a/db_core/struct.CreateCaptcha.html b/db_core/struct.CreateCaptcha.html
index d6eebd7a..82eff775 100644
--- a/db_core/struct.CreateCaptcha.html
+++ b/db_core/struct.CreateCaptcha.html
@@ -1,32 +1,27 @@
-CreateCaptcha in db_core - Rust
- Struct db_core::CreateCaptcha
source · pub struct CreateCaptcha<'a> {
- pub duration: i32,
- pub description: &'a str,
- pub key: &'a str,
+CreateCaptcha in db_core - Rust pub struct CreateCaptcha<'a> {
+ pub duration: i32,
+ pub description: &'a str,
+ pub key: &'a str,
}
Expand description
data required to create new captcha
-Fields§
§duration: i32cool down duration
-§description: &'a strdescription of the captcha
-§key: &'a strsecret key of the captcha
-Trait Implementations§
source§impl<'a> Clone for CreateCaptcha<'a>
source§fn clone(&self) -> CreateCaptcha<'a>
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source. Read moresource§impl<'a> Debug for CreateCaptcha<'a>
source§impl<'a> Default for CreateCaptcha<'a>
source§fn default() -> CreateCaptcha<'a>
Returns the “default value” for a type. Read moresource§impl<'de: 'a, 'a> Deserialize<'de> for CreateCaptcha<'a>
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
- __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl<'a> PartialEq for CreateCaptcha<'a>
source§fn eq(&self, other: &CreateCaptcha<'a>) -> bool
This method tests for self and other values to be equal, and is used
-by ==.source§impl<'a> Serialize for CreateCaptcha<'a>
source§impl<'a> StructuralPartialEq for CreateCaptcha<'a>
Auto Trait Implementations§
§impl<'a> RefUnwindSafe for CreateCaptcha<'a>
§impl<'a> Send for CreateCaptcha<'a>
§impl<'a> Sync for CreateCaptcha<'a>
§impl<'a> Unpin for CreateCaptcha<'a>
§impl<'a> UnwindSafe for CreateCaptcha<'a>
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
- T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read moresource§impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
source§impl<T, U> Into<U> for Twhere
- U: From<T>,
Fields§
§duration: i32cool down duration
+§description: &'a strdescription of the captcha
+§key: &'a strsecret key of the captcha
+Trait Implementations§
Source§impl<'a> Clone for CreateCaptcha<'a>
Source§fn clone(&self) -> CreateCaptcha<'a>
Returns a duplicate of the value. Read more1.0.0 · Source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source. Read moreSource§impl<'a> Debug for CreateCaptcha<'a>
Source§impl<'a> Default for CreateCaptcha<'a>
Source§fn default() -> CreateCaptcha<'a>
Returns the “default value” for a type. Read moreSource§impl<'de: 'a, 'a> Deserialize<'de> for CreateCaptcha<'a>
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
+ __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moreSource§impl<'a> PartialEq for CreateCaptcha<'a>
Source§impl<'a> Serialize for CreateCaptcha<'a>
Source§impl<'a> StructuralPartialEq for CreateCaptcha<'a>
Auto Trait Implementations§
§impl<'a> Freeze for CreateCaptcha<'a>
§impl<'a> RefUnwindSafe for CreateCaptcha<'a>
§impl<'a> Send for CreateCaptcha<'a>
§impl<'a> Sync for CreateCaptcha<'a>
§impl<'a> Unpin for CreateCaptcha<'a>
§impl<'a> UnwindSafe for CreateCaptcha<'a>
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
+ T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read moreSource§impl<T> CloneToUninit for Twhere
+ T: Clone,
source§impl<T> WithSubscriber for T
source§fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>where
- S: Into<Dispatch>,
source§fn with_current_subscriber(self) -> WithDispatch<Self>
source§impl<T> DeserializeOwned for Twhere
- T: for<'de> Deserialize<'de>,
\ No newline at end of file
+From<T> for U chooses to do.
+Source§impl<T> DeserializeOwned for Twhere
+ T: for<'de> Deserialize<'de>,
§impl<T> ErasedDestructor for Twhere
+ T: 'static,
§impl<T> MaybeSendSync for T
\ No newline at end of file
diff --git a/db_core/struct.CreatePerformanceAnalytics.html b/db_core/struct.CreatePerformanceAnalytics.html
index 289926ef..98d9c260 100644
--- a/db_core/struct.CreatePerformanceAnalytics.html
+++ b/db_core/struct.CreatePerformanceAnalytics.html
@@ -1,32 +1,27 @@
-CreatePerformanceAnalytics in db_core - Rust
- Struct db_core::CreatePerformanceAnalytics
source · pub struct CreatePerformanceAnalytics {
- pub time: u32,
- pub difficulty_factor: u32,
- pub worker_type: String,
+CreatePerformanceAnalytics in db_core - Rust pub struct CreatePerformanceAnalytics {
+ pub time: u32,
+ pub difficulty_factor: u32,
+ pub worker_type: String,
}
Expand description
Log Proof-of-Work CAPTCHA performance analytics
-Fields§
§time: u32time taken to generate proof
-§difficulty_factor: u32difficulty factor for which the proof was generated
-§worker_type: Stringworker/client type: wasm, javascript, python, etc.
-Trait Implementations§
source§impl Clone for CreatePerformanceAnalytics
source§fn clone(&self) -> CreatePerformanceAnalytics
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source. Read moresource§impl Debug for CreatePerformanceAnalytics
source§impl Default for CreatePerformanceAnalytics
source§fn default() -> CreatePerformanceAnalytics
Returns the “default value” for a type. Read moresource§impl<'de> Deserialize<'de> for CreatePerformanceAnalytics
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
- __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl PartialEq for CreatePerformanceAnalytics
source§fn eq(&self, other: &CreatePerformanceAnalytics) -> bool
This method tests for self and other values to be equal, and is used
-by ==.source§impl StructuralPartialEq for CreatePerformanceAnalytics
Auto Trait Implementations§
§impl RefUnwindSafe for CreatePerformanceAnalytics
§impl Send for CreatePerformanceAnalytics
§impl Sync for CreatePerformanceAnalytics
§impl Unpin for CreatePerformanceAnalytics
§impl UnwindSafe for CreatePerformanceAnalytics
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
- T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read moresource§impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
source§impl<T, U> Into<U> for Twhere
- U: From<T>,
Fields§
§time: u32time taken to generate proof
+§difficulty_factor: u32difficulty factor for which the proof was generated
+§worker_type: Stringworker/client type: wasm, javascript, python, etc.
+Trait Implementations§
Source§impl Clone for CreatePerformanceAnalytics
Source§fn clone(&self) -> CreatePerformanceAnalytics
Returns a duplicate of the value. Read more1.0.0 · Source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source. Read moreSource§impl Debug for CreatePerformanceAnalytics
Source§impl Default for CreatePerformanceAnalytics
Source§fn default() -> CreatePerformanceAnalytics
Returns the “default value” for a type. Read moreSource§impl<'de> Deserialize<'de> for CreatePerformanceAnalytics
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
+ __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moreSource§impl StructuralPartialEq for CreatePerformanceAnalytics
Auto Trait Implementations§
§impl Freeze for CreatePerformanceAnalytics
§impl RefUnwindSafe for CreatePerformanceAnalytics
§impl Send for CreatePerformanceAnalytics
§impl Sync for CreatePerformanceAnalytics
§impl Unpin for CreatePerformanceAnalytics
§impl UnwindSafe for CreatePerformanceAnalytics
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
+ T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read moreSource§impl<T> CloneToUninit for Twhere
+ T: Clone,
source§impl<T> WithSubscriber for T
source§fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>where
- S: Into<Dispatch>,
source§fn with_current_subscriber(self) -> WithDispatch<Self>
source§impl<T> DeserializeOwned for Twhere
- T: for<'de> Deserialize<'de>,
\ No newline at end of file
+From<T> for U chooses to do.
+Source§impl<T> DeserializeOwned for Twhere
+ T: for<'de> Deserialize<'de>,
§impl<T> ErasedDestructor for Twhere
+ T: 'static,
§impl<T> MaybeSendSync for T
\ No newline at end of file
diff --git a/db_core/struct.EasyCaptcha.html b/db_core/struct.EasyCaptcha.html
index 040d1800..20bba08b 100644
--- a/db_core/struct.EasyCaptcha.html
+++ b/db_core/struct.EasyCaptcha.html
@@ -1,34 +1,29 @@
-EasyCaptcha in db_core - Rust
- Struct db_core::EasyCaptcha
source · pub struct EasyCaptcha {
+EasyCaptcha in db_core - Rust pub struct EasyCaptcha {
pub traffic_pattern: TrafficPattern,
- pub key: String,
- pub description: String,
- pub username: String,
+ pub key: String,
+ pub description: String,
+ pub username: String,
}
Expand description
Represents Easy captcha configuration
Fields§
§traffic_pattern: TrafficPatterntraffic pattern of easy captcha
-§key: Stringcaptcha key/sitekey
-§description: Stringcaptcha description
-§username: StringOwner of the captcha configuration
-Trait Implementations§
source§impl Clone for EasyCaptcha
source§fn clone(&self) -> EasyCaptcha
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source. Read moresource§impl Debug for EasyCaptcha
source§impl Default for EasyCaptcha
source§fn default() -> EasyCaptcha
Returns the “default value” for a type. Read moresource§impl<'de> Deserialize<'de> for EasyCaptcha
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
- __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl PartialEq for EasyCaptcha
source§fn eq(&self, other: &EasyCaptcha) -> bool
This method tests for self and other values to be equal, and is used
-by ==.source§impl Serialize for EasyCaptcha
source§impl StructuralPartialEq for EasyCaptcha
Auto Trait Implementations§
§impl RefUnwindSafe for EasyCaptcha
§impl Send for EasyCaptcha
§impl Sync for EasyCaptcha
§impl Unpin for EasyCaptcha
§impl UnwindSafe for EasyCaptcha
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
- T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read moresource§impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
source§impl<T, U> Into<U> for Twhere
- U: From<T>,
source§fn into(self) -> U
Calls U::from(self).
+§key: Stringcaptcha key/sitekey
+§description: Stringcaptcha description
+§username: StringOwner of the captcha configuration
+Trait Implementations§
Source§impl Clone for EasyCaptcha
Source§fn clone(&self) -> EasyCaptcha
Returns a duplicate of the value. Read more1.0.0 · Source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source. Read moreSource§impl Debug for EasyCaptcha
Source§impl Default for EasyCaptcha
Source§fn default() -> EasyCaptcha
Returns the “default value” for a type. Read moreSource§impl<'de> Deserialize<'de> for EasyCaptcha
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
+ __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moreSource§impl PartialEq for EasyCaptcha
Source§impl Serialize for EasyCaptcha
Source§impl StructuralPartialEq for EasyCaptcha
Auto Trait Implementations§
§impl Freeze for EasyCaptcha
§impl RefUnwindSafe for EasyCaptcha
§impl Send for EasyCaptcha
§impl Sync for EasyCaptcha
§impl Unpin for EasyCaptcha
§impl UnwindSafe for EasyCaptcha
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
+ T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read moreSource§impl<T> CloneToUninit for Twhere
+ T: Clone,
source§impl<T> WithSubscriber for T
source§fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>where
- S: Into<Dispatch>,
source§fn with_current_subscriber(self) -> WithDispatch<Self>
source§impl<T> DeserializeOwned for Twhere
- T: for<'de> Deserialize<'de>,
\ No newline at end of file
+From<T> for U chooses to do.
+Source§impl<T> DeserializeOwned for Twhere
+ T: for<'de> Deserialize<'de>,
§impl<T> ErasedDestructor for Twhere
+ T: 'static,
§impl<T> MaybeSendSync for T
\ No newline at end of file
diff --git a/db_core/struct.Level.html b/db_core/struct.Level.html
index 5020e966..4b40517f 100644
--- a/db_core/struct.Level.html
+++ b/db_core/struct.Level.html
@@ -1,33 +1,28 @@
-Level in db_core - Rust
- pub struct Level {
- pub visitor_threshold: u32,
- pub difficulty_factor: u32,
+Level in db_core - Rust Struct Level
pub struct Level {
+ pub visitor_threshold: u32,
+ pub difficulty_factor: u32,
}
Expand description
Level struct that describes threshold-difficulty factor mapping
-Fields§
§visitor_threshold: u32§difficulty_factor: u32Trait Implementations§
§impl<'de> Deserialize<'de> for Level
§fn deserialize<__D>(
- __deserializer: __D
-) -> Result<Level, <__D as Deserializer<'de>>::Error>where
- __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moreFields§
§visitor_threshold: u32§difficulty_factor: u32Trait Implementations§
§impl<'de> Deserialize<'de> for Level
§fn deserialize<__D>(
+ __deserializer: __D,
+) -> Result<Level, <__D as Deserializer<'de>>::Error>where
+ __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more§impl Serialize for Level
§fn serialize<__S>(
&self,
- __serializer: __S
-) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
- __S: Serializer,
Serialize this value into the given Serde serializer. Read more§impl Copy for Level
§impl StructuralPartialEq for Level
Auto Trait Implementations§
§impl RefUnwindSafe for Level
§impl Send for Level
§impl Sync for Level
§impl Unpin for Level
§impl UnwindSafe for Level
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
- T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read moresource§impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
source§impl<T, U> Into<U> for Twhere
- U: From<T>,
source§fn into(self) -> U
Calls U::from(self).
+ __serializer: __S,
+) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
+ __S: Serializer,Serialize this value into the given Serde serializer. Read more§impl Copy for Level
§impl StructuralPartialEq for Level
Auto Trait Implementations§
§impl Freeze for Level
§impl RefUnwindSafe for Level
§impl Send for Level
§impl Sync for Level
§impl Unpin for Level
§impl UnwindSafe for Level
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
+ T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read moreSource§impl<T> CloneToUninit for Twhere
+ T: Clone,
source§impl<T> WithSubscriber for T
source§fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>where
- S: Into<Dispatch>,
source§fn with_current_subscriber(self) -> WithDispatch<Self>
source§impl<T> DeserializeOwned for Twhere
- T: for<'de> Deserialize<'de>,
\ No newline at end of file
+From<T> for U chooses to do.
+Source§impl<T> DeserializeOwned for Twhere
+ T: for<'de> Deserialize<'de>,
§impl<T> ErasedDestructor for Twhere
+ T: 'static,
§impl<T> MaybeSendSync for T
\ No newline at end of file
diff --git a/db_core/struct.NameHash.html b/db_core/struct.NameHash.html
index 640e2d70..372739e1 100644
--- a/db_core/struct.NameHash.html
+++ b/db_core/struct.NameHash.html
@@ -1,30 +1,25 @@
-NameHash in db_core - Rust
- pub struct NameHash {
- pub username: String,
- pub hash: String,
+NameHash in db_core - Rust pub struct NameHash {
+ pub username: String,
+ pub hash: String,
}
Expand description
type encapsulating username and hashed password of a user
-Fields§
§username: Stringusername
-§hash: Stringhashed password
-Trait Implementations§
source§impl<'de> Deserialize<'de> for NameHash
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
- __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl PartialEq for NameHash
source§impl StructuralPartialEq for NameHash
Auto Trait Implementations§
§impl RefUnwindSafe for NameHash
§impl Send for NameHash
§impl Sync for NameHash
§impl Unpin for NameHash
§impl UnwindSafe for NameHash
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
- T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read moresource§impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
source§impl<T, U> Into<U> for Twhere
- U: From<T>,
Fields§
§username: Stringusername
+§hash: Stringhashed password
+Trait Implementations§
Source§impl<'de> Deserialize<'de> for NameHash
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
+ __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moreSource§impl StructuralPartialEq for NameHash
Auto Trait Implementations§
§impl Freeze for NameHash
§impl RefUnwindSafe for NameHash
§impl Send for NameHash
§impl Sync for NameHash
§impl Unpin for NameHash
§impl UnwindSafe for NameHash
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
+ T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read moreSource§impl<T> CloneToUninit for Twhere
+ T: Clone,
source§impl<T> WithSubscriber for T
source§fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>where
- S: Into<Dispatch>,
source§fn with_current_subscriber(self) -> WithDispatch<Self>
source§impl<T> DeserializeOwned for Twhere
- T: for<'de> Deserialize<'de>,
\ No newline at end of file
+From<T> for U chooses to do.
+Source§impl<T> DeserializeOwned for Twhere
+ T: for<'de> Deserialize<'de>,
§impl<T> ErasedDestructor for Twhere
+ T: 'static,
§impl<T> MaybeSendSync for T
\ No newline at end of file
diff --git a/db_core/struct.Notification.html b/db_core/struct.Notification.html
index 212c48cc..436fef47 100644
--- a/db_core/struct.Notification.html
+++ b/db_core/struct.Notification.html
@@ -1,36 +1,31 @@
-Notification in db_core - Rust
- Struct db_core::Notification
source · pub struct Notification {
- pub name: Option<String>,
- pub heading: Option<String>,
- pub message: Option<String>,
- pub received: Option<i64>,
- pub id: Option<i32>,
+Notification in db_core - Rust pub struct Notification {
+ pub name: Option<String>,
+ pub heading: Option<String>,
+ pub message: Option<String>,
+ pub received: Option<i64>,
+ pub id: Option<i32>,
}
Expand description
Represents notification
-Fields§
§name: Option<String>receiver name of the notification
-§heading: Option<String>heading of the notification
-§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§
source§impl Clone for Notification
source§fn clone(&self) -> Notification
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source. Read moresource§impl Debug for Notification
source§impl Default for Notification
source§fn default() -> Notification
Returns the “default value” for a type. Read moresource§impl<'de> Deserialize<'de> for Notification
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
- __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl PartialEq for Notification
source§fn eq(&self, other: &Notification) -> bool
This method tests for self and other values to be equal, and is used
-by ==.source§impl Serialize for Notification
source§impl StructuralPartialEq for Notification
Auto Trait Implementations§
§impl RefUnwindSafe for Notification
§impl Send for Notification
§impl Sync for Notification
§impl Unpin for Notification
§impl UnwindSafe for Notification
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
- T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read moresource§impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
source§impl<T, U> Into<U> for Twhere
- U: From<T>,
Fields§
§name: Option<String>receiver name of the notification
+§heading: Option<String>heading of the notification
+§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§
Source§impl Clone for Notification
Source§fn clone(&self) -> Notification
Returns a duplicate of the value. Read more1.0.0 · Source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source. Read moreSource§impl Debug for Notification
Source§impl Default for Notification
Source§fn default() -> Notification
Returns the “default value” for a type. Read moreSource§impl<'de> Deserialize<'de> for Notification
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
+ __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moreSource§impl PartialEq for Notification
Source§impl Serialize for Notification
Source§impl StructuralPartialEq for Notification
Auto Trait Implementations§
§impl Freeze for Notification
§impl RefUnwindSafe for Notification
§impl Send for Notification
§impl Sync for Notification
§impl Unpin for Notification
§impl UnwindSafe for Notification
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
+ T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read moreSource§impl<T> CloneToUninit for Twhere
+ T: Clone,
source§impl<T> WithSubscriber for T
source§fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>where
- S: Into<Dispatch>,
source§fn with_current_subscriber(self) -> WithDispatch<Self>
source§impl<T> DeserializeOwned for Twhere
- T: for<'de> Deserialize<'de>,
\ No newline at end of file
+From<T> for U chooses to do.
+Source§impl<T> DeserializeOwned for Twhere
+ T: for<'de> Deserialize<'de>,
§impl<T> ErasedDestructor for Twhere
+ T: 'static,
§impl<T> MaybeSendSync for T
\ No newline at end of file
diff --git a/db_core/struct.PerformanceAnalytics.html b/db_core/struct.PerformanceAnalytics.html
index dee33078..ad663939 100644
--- a/db_core/struct.PerformanceAnalytics.html
+++ b/db_core/struct.PerformanceAnalytics.html
@@ -1,34 +1,29 @@
-PerformanceAnalytics in db_core - Rust
- Struct db_core::PerformanceAnalytics
source · pub struct PerformanceAnalytics {
- pub id: usize,
- pub time: u32,
- pub difficulty_factor: u32,
- pub worker_type: String,
+PerformanceAnalytics in db_core - Rust pub struct PerformanceAnalytics {
+ pub id: usize,
+ pub time: u32,
+ pub difficulty_factor: u32,
+ pub worker_type: String,
}
Expand description
Proof-of-Work CAPTCHA performance analytics
-Fields§
§id: usizelog ID
-§time: u32time taken to generate proof
-§difficulty_factor: u32difficulty factor for which the proof was generated
-§worker_type: Stringworker/client type: wasm, javascript, python, etc.
-Trait Implementations§
source§impl Clone for PerformanceAnalytics
source§fn clone(&self) -> PerformanceAnalytics
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source. Read moresource§impl Debug for PerformanceAnalytics
source§impl Default for PerformanceAnalytics
source§fn default() -> PerformanceAnalytics
Returns the “default value” for a type. Read moresource§impl<'de> Deserialize<'de> for PerformanceAnalytics
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
- __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl PartialEq for PerformanceAnalytics
source§fn eq(&self, other: &PerformanceAnalytics) -> bool
This method tests for self and other values to be equal, and is used
-by ==.source§impl Serialize for PerformanceAnalytics
source§impl StructuralPartialEq for PerformanceAnalytics
Auto Trait Implementations§
§impl RefUnwindSafe for PerformanceAnalytics
§impl Send for PerformanceAnalytics
§impl Sync for PerformanceAnalytics
§impl Unpin for PerformanceAnalytics
§impl UnwindSafe for PerformanceAnalytics
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
- T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read moresource§impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
source§impl<T, U> Into<U> for Twhere
- U: From<T>,
Fields§
§id: usizelog ID
+§time: u32time taken to generate proof
+§difficulty_factor: u32difficulty factor for which the proof was generated
+§worker_type: Stringworker/client type: wasm, javascript, python, etc.
+Trait Implementations§
Source§impl Clone for PerformanceAnalytics
Source§fn clone(&self) -> PerformanceAnalytics
Returns a duplicate of the value. Read more1.0.0 · Source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source. Read moreSource§impl Debug for PerformanceAnalytics
Source§impl Default for PerformanceAnalytics
Source§fn default() -> PerformanceAnalytics
Returns the “default value” for a type. Read moreSource§impl<'de> Deserialize<'de> for PerformanceAnalytics
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
+ __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moreSource§impl PartialEq for PerformanceAnalytics
Source§impl Serialize for PerformanceAnalytics
Source§impl StructuralPartialEq for PerformanceAnalytics
Auto Trait Implementations§
§impl Freeze for PerformanceAnalytics
§impl RefUnwindSafe for PerformanceAnalytics
§impl Send for PerformanceAnalytics
§impl Sync for PerformanceAnalytics
§impl Unpin for PerformanceAnalytics
§impl UnwindSafe for PerformanceAnalytics
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
+ T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read moreSource§impl<T> CloneToUninit for Twhere
+ T: Clone,
source§impl<T> WithSubscriber for T
source§fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>where
- S: Into<Dispatch>,
source§fn with_current_subscriber(self) -> WithDispatch<Self>
source§impl<T> DeserializeOwned for Twhere
- T: for<'de> Deserialize<'de>,
\ No newline at end of file
+From<T> for U chooses to do.
+Source§impl<T> DeserializeOwned for Twhere
+ T: for<'de> Deserialize<'de>,
§impl<T> ErasedDestructor for Twhere
+ T: 'static,
§impl<T> MaybeSendSync for T
\ No newline at end of file
diff --git a/db_core/struct.Register.html b/db_core/struct.Register.html
index d3785b6c..45683659 100644
--- a/db_core/struct.Register.html
+++ b/db_core/struct.Register.html
@@ -1,34 +1,29 @@
-Register in db_core - Rust
- pub struct Register<'a> {
- pub username: &'a str,
- pub secret: &'a str,
- pub hash: &'a str,
- pub email: Option<&'a str>,
+Register in db_core - Rust pub struct Register<'a> {
+ pub username: &'a str,
+ pub secret: &'a str,
+ pub hash: &'a str,
+ pub email: Option<&'a str>,
}
Expand description
Data required to register a new user
-Fields§
§username: &'a strusername of new user
-§secret: &'a strsecret of new user
-§hash: &'a strhashed password of new use
-§email: Option<&'a str>Optionally, email of new use
-Trait Implementations§
source§impl<'de: 'a, 'a> Deserialize<'de> for Register<'a>
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
- __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl<'a> PartialEq for Register<'a>
source§impl<'a> StructuralPartialEq for Register<'a>
Auto Trait Implementations§
§impl<'a> RefUnwindSafe for Register<'a>
§impl<'a> Send for Register<'a>
§impl<'a> Sync for Register<'a>
§impl<'a> Unpin for Register<'a>
§impl<'a> UnwindSafe for Register<'a>
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
- T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read moresource§impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
source§impl<T, U> Into<U> for Twhere
- U: From<T>,
Fields§
§username: &'a strusername of new user
+§secret: &'a strsecret of new user
+§hash: &'a strhashed password of new use
+§email: Option<&'a str>Optionally, email of new use
+Trait Implementations§
Source§impl<'de: 'a, 'a> Deserialize<'de> for Register<'a>
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
+ __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moreSource§impl<'a> StructuralPartialEq for Register<'a>
Auto Trait Implementations§
§impl<'a> Freeze for Register<'a>
§impl<'a> RefUnwindSafe for Register<'a>
§impl<'a> Send for Register<'a>
§impl<'a> Sync for Register<'a>
§impl<'a> Unpin for Register<'a>
§impl<'a> UnwindSafe for Register<'a>
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
+ T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read moreSource§impl<T> CloneToUninit for Twhere
+ T: Clone,
source§impl<T> WithSubscriber for T
source§fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>where
- S: Into<Dispatch>,
source§fn with_current_subscriber(self) -> WithDispatch<Self>
source§impl<T> DeserializeOwned for Twhere
- T: for<'de> Deserialize<'de>,
\ No newline at end of file
+From<T> for U chooses to do.
+Source§impl<T> DeserializeOwned for Twhere
+ T: for<'de> Deserialize<'de>,
§impl<T> ErasedDestructor for Twhere
+ T: 'static,
§impl<T> MaybeSendSync for T
\ No newline at end of file
diff --git a/db_core/struct.Secret.html b/db_core/struct.Secret.html
index 02f00aec..3caa723b 100644
--- a/db_core/struct.Secret.html
+++ b/db_core/struct.Secret.html
@@ -1,28 +1,23 @@
-Secret in db_core - Rust
- pub struct Secret {
- pub secret: String,
+Secret in db_core - Rust pub struct Secret {
+ pub secret: String,
}
Expand description
datastructure representing a user’s secret
-Fields§
§secret: Stringuser’s secret
-Trait Implementations§
source§impl<'de> Deserialize<'de> for Secret
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
- __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl PartialEq for Secret
source§impl StructuralPartialEq for Secret
Auto Trait Implementations§
§impl RefUnwindSafe for Secret
§impl Send for Secret
§impl Sync for Secret
§impl Unpin for Secret
§impl UnwindSafe for Secret
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
- T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read moresource§impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
source§impl<T, U> Into<U> for Twhere
- U: From<T>,
Fields§
§secret: Stringuser’s secret
+Trait Implementations§
Source§impl<'de> Deserialize<'de> for Secret
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
+ __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moreSource§impl StructuralPartialEq for Secret
Auto Trait Implementations§
§impl Freeze for Secret
§impl RefUnwindSafe for Secret
§impl Send for Secret
§impl Sync for Secret
§impl Unpin for Secret
§impl UnwindSafe for Secret
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
+ T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read moreSource§impl<T> CloneToUninit for Twhere
+ T: Clone,
source§impl<T> WithSubscriber for T
source§fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>where
- S: Into<Dispatch>,
source§fn with_current_subscriber(self) -> WithDispatch<Self>
source§impl<T> DeserializeOwned for Twhere
- T: for<'de> Deserialize<'de>,
\ No newline at end of file
+From<T> for U chooses to do.
+Source§impl<T> DeserializeOwned for Twhere
+ T: for<'de> Deserialize<'de>,
§impl<T> ErasedDestructor for Twhere
+ T: 'static,
§impl<T> MaybeSendSync for T
\ No newline at end of file
diff --git a/db_core/struct.StatsUnixTimestamp.html b/db_core/struct.StatsUnixTimestamp.html
index e7b44740..c05d51b2 100644
--- a/db_core/struct.StatsUnixTimestamp.html
+++ b/db_core/struct.StatsUnixTimestamp.html
@@ -1,32 +1,27 @@
-StatsUnixTimestamp in db_core - Rust
- Struct db_core::StatsUnixTimestamp
source · pub struct StatsUnixTimestamp {
- pub config_fetches: Vec<i64>,
- pub solves: Vec<i64>,
- pub confirms: Vec<i64>,
+StatsUnixTimestamp in db_core - Rust pub struct StatsUnixTimestamp {
+ pub config_fetches: Vec<i64>,
+ pub solves: Vec<i64>,
+ pub confirms: Vec<i64>,
}
Expand description
Captcha statistics with time recorded in UNIX epoch formats
-Fields§
§config_fetches: Vec<i64>times at which the configuration were fetched
-§solves: Vec<i64>times at which the PoW was solved
-§confirms: Vec<i64>times at which the PoW token was verified
-Trait Implementations§
source§impl Clone for StatsUnixTimestamp
source§fn clone(&self) -> StatsUnixTimestamp
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source. Read moresource§impl Debug for StatsUnixTimestamp
source§impl Default for StatsUnixTimestamp
source§fn default() -> StatsUnixTimestamp
Returns the “default value” for a type. Read moresource§impl<'de> Deserialize<'de> for StatsUnixTimestamp
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
- __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl PartialEq for StatsUnixTimestamp
source§fn eq(&self, other: &StatsUnixTimestamp) -> bool
This method tests for self and other values to be equal, and is used
-by ==.source§impl Serialize for StatsUnixTimestamp
source§impl StructuralPartialEq for StatsUnixTimestamp
Auto Trait Implementations§
§impl RefUnwindSafe for StatsUnixTimestamp
§impl Send for StatsUnixTimestamp
§impl Sync for StatsUnixTimestamp
§impl Unpin for StatsUnixTimestamp
§impl UnwindSafe for StatsUnixTimestamp
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
- T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read moresource§impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
source§impl<T, U> Into<U> for Twhere
- U: From<T>,
Fields§
§config_fetches: Vec<i64>times at which the configuration were fetched
+§solves: Vec<i64>times at which the PoW was solved
+§confirms: Vec<i64>times at which the PoW token was verified
+Trait Implementations§
Source§impl Clone for StatsUnixTimestamp
Source§fn clone(&self) -> StatsUnixTimestamp
Returns a duplicate of the value. Read more1.0.0 · Source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source. Read moreSource§impl Debug for StatsUnixTimestamp
Source§impl Default for StatsUnixTimestamp
Source§fn default() -> StatsUnixTimestamp
Returns the “default value” for a type. Read moreSource§impl<'de> Deserialize<'de> for StatsUnixTimestamp
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
+ __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moreSource§impl PartialEq for StatsUnixTimestamp
Source§impl Serialize for StatsUnixTimestamp
Source§impl StructuralPartialEq for StatsUnixTimestamp
Auto Trait Implementations§
§impl Freeze for StatsUnixTimestamp
§impl RefUnwindSafe for StatsUnixTimestamp
§impl Send for StatsUnixTimestamp
§impl Sync for StatsUnixTimestamp
§impl Unpin for StatsUnixTimestamp
§impl UnwindSafe for StatsUnixTimestamp
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
+ T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read moreSource§impl<T> CloneToUninit for Twhere
+ T: Clone,
source§impl<T> WithSubscriber for T
source§fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>where
- S: Into<Dispatch>,
source§fn with_current_subscriber(self) -> WithDispatch<Self>
source§impl<T> DeserializeOwned for Twhere
- T: for<'de> Deserialize<'de>,
\ No newline at end of file
+From<T> for U chooses to do.
+Source§impl<T> DeserializeOwned for Twhere
+ T: for<'de> Deserialize<'de>,
§impl<T> ErasedDestructor for Twhere
+ T: 'static,
§impl<T> MaybeSendSync for T
\ No newline at end of file
diff --git a/db_core/struct.TrafficPattern.html b/db_core/struct.TrafficPattern.html
index ac4d439b..7e32a8b0 100644
--- a/db_core/struct.TrafficPattern.html
+++ b/db_core/struct.TrafficPattern.html
@@ -1,32 +1,27 @@
-TrafficPattern in db_core - Rust
- Struct db_core::TrafficPattern
source · pub struct TrafficPattern {
- pub avg_traffic: u32,
- pub peak_sustainable_traffic: u32,
- pub broke_my_site_traffic: Option<u32>,
+TrafficPattern in db_core - Rust pub struct TrafficPattern {
+ pub avg_traffic: u32,
+ pub peak_sustainable_traffic: u32,
+ pub broke_my_site_traffic: Option<u32>,
}
Expand description
User’s traffic pattern; used in generating a captcha configuration
-Fields§
§avg_traffic: u32average traffic of user’s website
-§peak_sustainable_traffic: u32the peak traffic that the user’s website can handle
-§broke_my_site_traffic: Option<u32>traffic that bought the user’s website down; optional
-Trait Implementations§
source§impl Clone for TrafficPattern
source§fn clone(&self) -> TrafficPattern
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source. Read moresource§impl Debug for TrafficPattern
source§impl Default for TrafficPattern
source§fn default() -> TrafficPattern
Returns the “default value” for a type. Read moresource§impl<'de> Deserialize<'de> for TrafficPattern
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
- __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl PartialEq for TrafficPattern
source§fn eq(&self, other: &TrafficPattern) -> bool
This method tests for self and other values to be equal, and is used
-by ==.source§impl Serialize for TrafficPattern
source§impl StructuralPartialEq for TrafficPattern
Auto Trait Implementations§
§impl RefUnwindSafe for TrafficPattern
§impl Send for TrafficPattern
§impl Sync for TrafficPattern
§impl Unpin for TrafficPattern
§impl UnwindSafe for TrafficPattern
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
- T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read moresource§impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
source§impl<T, U> Into<U> for Twhere
- U: From<T>,
Fields§
§avg_traffic: u32average traffic of user’s website
+§peak_sustainable_traffic: u32the peak traffic that the user’s website can handle
+§broke_my_site_traffic: Option<u32>traffic that bought the user’s website down; optional
+Trait Implementations§
Source§impl Clone for TrafficPattern
Source§fn clone(&self) -> TrafficPattern
Returns a duplicate of the value. Read more1.0.0 · Source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source. Read moreSource§impl Debug for TrafficPattern
Source§impl Default for TrafficPattern
Source§fn default() -> TrafficPattern
Returns the “default value” for a type. Read moreSource§impl<'de> Deserialize<'de> for TrafficPattern
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
+ __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moreSource§impl PartialEq for TrafficPattern
Source§impl Serialize for TrafficPattern
Source§impl StructuralPartialEq for TrafficPattern
Auto Trait Implementations§
§impl Freeze for TrafficPattern
§impl RefUnwindSafe for TrafficPattern
§impl Send for TrafficPattern
§impl Sync for TrafficPattern
§impl Unpin for TrafficPattern
§impl UnwindSafe for TrafficPattern
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
+ T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read moreSource§impl<T> CloneToUninit for Twhere
+ T: Clone,
source§impl<T> WithSubscriber for T
source§fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>where
- S: Into<Dispatch>,
source§fn with_current_subscriber(self) -> WithDispatch<Self>
source§impl<T> DeserializeOwned for Twhere
- T: for<'de> Deserialize<'de>,
\ No newline at end of file
+From<T> for U chooses to do.
+Source§impl<T> DeserializeOwned for Twhere
+ T: for<'de> Deserialize<'de>,
§impl<T> ErasedDestructor for Twhere
+ T: 'static,
§impl<T> MaybeSendSync for T
\ No newline at end of file
diff --git a/db_core/struct.UpdateEmail.html b/db_core/struct.UpdateEmail.html
index 0f550099..622b7e92 100644
--- a/db_core/struct.UpdateEmail.html
+++ b/db_core/struct.UpdateEmail.html
@@ -1,30 +1,25 @@
-UpdateEmail in db_core - Rust
- Struct db_core::UpdateEmail
source · pub struct UpdateEmail<'a> {
- pub username: &'a str,
- pub new_email: &'a str,
+UpdateEmail in db_core - Rust 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 strusername of the user
-§new_email: &'a strnew email address of the user
-Trait Implementations§
source§impl<'a> Clone for UpdateEmail<'a>
source§fn clone(&self) -> UpdateEmail<'a>
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source. Read moresource§impl<'a> Debug for UpdateEmail<'a>
source§impl<'de: 'a, 'a> Deserialize<'de> for UpdateEmail<'a>
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
- __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl<'a> PartialEq for UpdateEmail<'a>
source§fn eq(&self, other: &UpdateEmail<'a>) -> bool
This method tests for self and other values to be equal, and is used
-by ==.source§impl<'a> Serialize for UpdateEmail<'a>
source§impl<'a> StructuralPartialEq for UpdateEmail<'a>
Auto Trait Implementations§
§impl<'a> RefUnwindSafe for UpdateEmail<'a>
§impl<'a> Send for UpdateEmail<'a>
§impl<'a> Sync for UpdateEmail<'a>
§impl<'a> Unpin for UpdateEmail<'a>
§impl<'a> UnwindSafe for UpdateEmail<'a>
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
- T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read moresource§impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
source§impl<T, U> Into<U> for Twhere
- U: From<T>,
Fields§
§username: &'a strusername of the user
+§new_email: &'a strnew email address of the user
+Trait Implementations§
Source§impl<'a> Clone for UpdateEmail<'a>
Source§fn clone(&self) -> UpdateEmail<'a>
Returns a duplicate of the value. Read more1.0.0 · Source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source. Read moreSource§impl<'a> Debug for UpdateEmail<'a>
Source§impl<'de: 'a, 'a> Deserialize<'de> for UpdateEmail<'a>
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
+ __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moreSource§impl<'a> PartialEq for UpdateEmail<'a>
Source§impl<'a> Serialize for UpdateEmail<'a>
Source§impl<'a> StructuralPartialEq for UpdateEmail<'a>
Auto Trait Implementations§
§impl<'a> Freeze for UpdateEmail<'a>
§impl<'a> RefUnwindSafe for UpdateEmail<'a>
§impl<'a> Send for UpdateEmail<'a>
§impl<'a> Sync for UpdateEmail<'a>
§impl<'a> Unpin for UpdateEmail<'a>
§impl<'a> UnwindSafe for UpdateEmail<'a>
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
+ T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read moreSource§impl<T> CloneToUninit for Twhere
+ T: Clone,
source§impl<T> WithSubscriber for T
source§fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>where
- S: Into<Dispatch>,
source§fn with_current_subscriber(self) -> WithDispatch<Self>
source§impl<T> DeserializeOwned for Twhere
- T: for<'de> Deserialize<'de>,
\ No newline at end of file
+From<T> for U chooses to do.
+Source§impl<T> DeserializeOwned for Twhere
+ T: for<'de> Deserialize<'de>,
§impl<T> ErasedDestructor for Twhere
+ T: 'static,
§impl<T> MaybeSendSync for T
\ No newline at end of file
diff --git a/db_core/tests/constant.LEVELS.html b/db_core/tests/constant.LEVELS.html
index bc84316e..7213e0e8 100644
--- a/db_core/tests/constant.LEVELS.html
+++ b/db_core/tests/constant.LEVELS.html
@@ -1,3 +1,2 @@
-LEVELS in db_core::tests - Rust
- pub const LEVELS: [Level; 3];
Expand description
levels for complex captcha config
+LEVELS in db_core::tests - Rust
\ No newline at end of file
diff --git a/db_core/tests/constant.TRAFFIC_PATTERN.html b/db_core/tests/constant.TRAFFIC_PATTERN.html
index 93bdf92f..786dea15 100644
--- a/db_core/tests/constant.TRAFFIC_PATTERN.html
+++ b/db_core/tests/constant.TRAFFIC_PATTERN.html
@@ -1,3 +1,2 @@
-TRAFFIC_PATTERN in db_core::tests - Rust
- Constant db_core::tests::TRAFFIC_PATTERN
source · pub const TRAFFIC_PATTERN: TrafficPattern;
Expand description
easy traffic pattern
+TRAFFIC_PATTERN in db_core::tests - Rust pub const TRAFFIC_PATTERN: TrafficPattern;
Expand description
easy traffic pattern
\ No newline at end of file
diff --git a/db_core/tests/fn.database_works.html b/db_core/tests/fn.database_works.html
index e6c05bba..6d593bf0 100644
--- a/db_core/tests/fn.database_works.html
+++ b/db_core/tests/fn.database_works.html
@@ -1,10 +1,9 @@
-database_works in db_core::tests - Rust
- Function db_core::tests::database_works
source · pub async fn database_works<'a, T: MCDatabase>(
- db: &T,
+database_works in db_core::tests - Rust pub async fn database_works<'a, T: MCDatabase>(
+ db: &T,
p: &Register<'a>,
c: &CreateCaptcha<'a>,
l: &[Level],
tp: &TrafficPattern,
- an: &AddNotification<'a>
+ an: &AddNotification<'a>,
)
Expand description
test all database functions
\ No newline at end of file
diff --git a/db_core/tests/index.html b/db_core/tests/index.html
index c8e0fb6f..a53982d1 100644
--- a/db_core/tests/index.html
+++ b/db_core/tests/index.html
@@ -1,3 +1,2 @@
-db_core::tests - Rust
-
\ No newline at end of file
+db_core::tests - Rust Expand description
Test utilities
+Constants§
- LEVELS
- levels for complex captcha config
- TRAFFIC_
PATTERN - easy traffic pattern
Functions§
- database_
works - test all database functions
\ No newline at end of file
diff --git a/db_core/trait.CloneSPDatabase.html b/db_core/trait.CloneSPDatabase.html
index dc7abf1d..5da5c5d6 100644
--- a/db_core/trait.CloneSPDatabase.html
+++ b/db_core/trait.CloneSPDatabase.html
@@ -1,8 +1,7 @@
-CloneSPDatabase in db_core - Rust
- Trait db_core::CloneSPDatabase
source · pub trait CloneSPDatabase {
+CloneSPDatabase in db_core - Rust pub trait CloneSPDatabase {
// Required method
- fn clone_db(&self) -> Box<dyn MCDatabase>;
+ fn clone_db(&self) -> Box<dyn MCDatabase>;
}
Expand description
Trait to clone MCDatabase
-Required Methods§
sourcefn clone_db(&self) -> Box<dyn MCDatabase>
clone DB
-Implementors§
source§impl<T> CloneSPDatabase for Twhere
- T: MCDatabase + Clone + 'static,
\ No newline at end of file
+
Required Methods§
Sourcefn clone_db(&self) -> Box<dyn MCDatabase>
clone DB
+Implementors§
Source§impl<T> CloneSPDatabase for Twhere
+ T: MCDatabase + Clone + 'static,
\ No newline at end of file
diff --git a/db_core/trait.MCDatabase.html b/db_core/trait.MCDatabase.html
index e1bd887d..378cfc96 100644
--- a/db_core/trait.MCDatabase.html
+++ b/db_core/trait.MCDatabase.html
@@ -1,139 +1,141 @@
-MCDatabase in db_core - Rust
- Trait db_core::MCDatabase
source · pub trait MCDatabase: Send + Sync + CloneSPDatabase {
+MCDatabase in db_core - Rust pub trait MCDatabase:
+ Send
+ + Sync
+ + CloneSPDatabase {
Show 49 methods
// Required methods
fn ping<'life0, 'async_trait>(
- &'life0 self
- ) -> Pin<Box<dyn Future<Output = bool> + Send + 'async_trait>>
+ &'life0 self,
+ ) -> Pin<Box<dyn Future<Output = bool> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn register<'life0, 'life1, 'async_trait>(
&'life0 self,
- p: &'life1 Register<'_>
- ) -> Pin<Box<dyn Future<Output = DBResult<()>> + Send + 'async_trait>>
+ p: &'life1 Register<'_>,
+ ) -> Pin<Box<dyn Future<Output = DBResult<()>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait;
fn delete_user<'life0, 'life1, 'async_trait>(
&'life0 self,
- username: &'life1 str
- ) -> Pin<Box<dyn Future<Output = DBResult<()>> + Send + 'async_trait>>
+ username: &'life1 str,
+ ) -> Pin<Box<dyn Future<Output = DBResult<()>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait;
fn username_exists<'life0, 'life1, 'async_trait>(
&'life0 self,
- username: &'life1 str
- ) -> Pin<Box<dyn Future<Output = DBResult<bool>> + Send + 'async_trait>>
+ username: &'life1 str,
+ ) -> Pin<Box<dyn Future<Output = DBResult<bool>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait;
fn get_email<'life0, 'life1, 'async_trait>(
&'life0 self,
- username: &'life1 str
- ) -> Pin<Box<dyn Future<Output = DBResult<Option<String>>> + Send + 'async_trait>>
+ username: &'life1 str,
+ ) -> Pin<Box<dyn Future<Output = DBResult<Option<String>>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait;
fn email_exists<'life0, 'life1, 'async_trait>(
&'life0 self,
- email: &'life1 str
- ) -> Pin<Box<dyn Future<Output = DBResult<bool>> + Send + 'async_trait>>
+ email: &'life1 str,
+ ) -> Pin<Box<dyn Future<Output = DBResult<bool>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait;
fn update_email<'life0, 'life1, 'async_trait>(
&'life0 self,
- p: &'life1 UpdateEmail<'_>
- ) -> Pin<Box<dyn Future<Output = DBResult<()>> + Send + 'async_trait>>
+ p: &'life1 UpdateEmail<'_>,
+ ) -> Pin<Box<dyn Future<Output = DBResult<()>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait;
fn get_password<'life0, 'life1, 'async_trait>(
&'life0 self,
- l: &'life1 Login<'_>
- ) -> Pin<Box<dyn Future<Output = DBResult<NameHash>> + Send + 'async_trait>>
+ l: &'life1 Login<'_>,
+ ) -> Pin<Box<dyn Future<Output = DBResult<NameHash>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait;
fn update_password<'life0, 'life1, 'async_trait>(
&'life0 self,
- p: &'life1 NameHash
- ) -> Pin<Box<dyn Future<Output = DBResult<()>> + Send + 'async_trait>>
+ p: &'life1 NameHash,
+ ) -> Pin<Box<dyn Future<Output = DBResult<()>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait;
fn update_username<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
- current: &'life1 str,
- new: &'life2 str
- ) -> Pin<Box<dyn Future<Output = DBResult<()>> + Send + 'async_trait>>
+ current: &'life1 str,
+ new: &'life2 str,
+ ) -> Pin<Box<dyn Future<Output = DBResult<()>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait;
fn get_secret<'life0, 'life1, 'async_trait>(
&'life0 self,
- username: &'life1 str
- ) -> Pin<Box<dyn Future<Output = DBResult<Secret>> + Send + 'async_trait>>
+ username: &'life1 str,
+ ) -> Pin<Box<dyn Future<Output = DBResult<Secret>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait;
fn get_secret_from_captcha<'life0, 'life1, 'async_trait>(
&'life0 self,
- key: &'life1 str
- ) -> Pin<Box<dyn Future<Output = DBResult<Secret>> + Send + 'async_trait>>
+ key: &'life1 str,
+ ) -> Pin<Box<dyn Future<Output = DBResult<Secret>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait;
fn update_secret<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
- username: &'life1 str,
- secret: &'life2 str
- ) -> Pin<Box<dyn Future<Output = DBResult<()>> + Send + 'async_trait>>
+ username: &'life1 str,
+ secret: &'life2 str,
+ ) -> Pin<Box<dyn Future<Output = DBResult<()>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait;
fn create_captcha<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
- username: &'life1 str,
- p: &'life2 CreateCaptcha<'_>
- ) -> Pin<Box<dyn Future<Output = DBResult<()>> + Send + 'async_trait>>
+ username: &'life1 str,
+ p: &'life2 CreateCaptcha<'_>,
+ ) -> Pin<Box<dyn Future<Output = DBResult<()>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait;
fn get_captcha_config<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
- username: &'life1 str,
- key: &'life2 str
- ) -> Pin<Box<dyn Future<Output = DBResult<Captcha>> + Send + 'async_trait>>
+ username: &'life1 str,
+ key: &'life2 str,
+ ) -> Pin<Box<dyn Future<Output = DBResult<Captcha>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait;
fn get_all_user_captchas<'life0, 'life1, 'async_trait>(
&'life0 self,
- username: &'life1 str
- ) -> Pin<Box<dyn Future<Output = DBResult<Vec<Captcha>>> + Send + 'async_trait>>
+ username: &'life1 str,
+ ) -> Pin<Box<dyn Future<Output = DBResult<Vec<Captcha>>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait;
fn update_captcha_metadata<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
- username: &'life1 str,
- p: &'life2 CreateCaptcha<'_>
- ) -> Pin<Box<dyn Future<Output = DBResult<()>> + Send + 'async_trait>>
+ username: &'life1 str,
+ p: &'life2 CreateCaptcha<'_>,
+ ) -> Pin<Box<dyn Future<Output = DBResult<()>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait;
fn update_captcha_key<'life0, 'life1, 'life2, 'life3, 'async_trait>(
&'life0 self,
- username: &'life1 str,
- old_key: &'life2 str,
- new_key: &'life3 str
- ) -> Pin<Box<dyn Future<Output = DBResult<()>> + Send + 'async_trait>>
+ username: &'life1 str,
+ old_key: &'life2 str,
+ new_key: &'life3 str,
+ ) -> Pin<Box<dyn Future<Output = DBResult<()>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
@@ -141,10 +143,10 @@
'life3: 'async_trait;
fn add_captcha_levels<'life0, 'life1, 'life2, 'life3, 'async_trait>(
&'life0 self,
- username: &'life1 str,
- captcha_key: &'life2 str,
- levels: &'life3 [Level]
- ) -> Pin<Box<dyn Future<Output = DBResult<()>> + Send + 'async_trait>>
+ username: &'life1 str,
+ captcha_key: &'life2 str,
+ levels: &'life3 [Level],
+ ) -> Pin<Box<dyn Future<Output = DBResult<()>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
@@ -152,53 +154,53 @@
'life3: 'async_trait;
fn captcha_exists<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
- username: Option<&'life1 str>,
- captcha_key: &'life2 str
- ) -> Pin<Box<dyn Future<Output = DBResult<bool>> + Send + 'async_trait>>
+ username: Option<&'life1 str>,
+ captcha_key: &'life2 str,
+ ) -> Pin<Box<dyn Future<Output = DBResult<bool>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait;
fn delete_captcha_levels<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
- username: &'life1 str,
- captcha_key: &'life2 str
- ) -> Pin<Box<dyn Future<Output = DBResult<()>> + Send + 'async_trait>>
+ username: &'life1 str,
+ captcha_key: &'life2 str,
+ ) -> Pin<Box<dyn Future<Output = DBResult<()>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait;
fn delete_captcha<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
- username: &'life1 str,
- captcha_key: &'life2 str
- ) -> Pin<Box<dyn Future<Output = DBResult<()>> + Send + 'async_trait>>
+ username: &'life1 str,
+ captcha_key: &'life2 str,
+ ) -> Pin<Box<dyn Future<Output = DBResult<()>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait;
fn get_captcha_levels<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
- username: Option<&'life1 str>,
- captcha_key: &'life2 str
- ) -> Pin<Box<dyn Future<Output = DBResult<Vec<Level>>> + Send + 'async_trait>>
+ username: Option<&'life1 str>,
+ captcha_key: &'life2 str,
+ ) -> Pin<Box<dyn Future<Output = DBResult<Vec<Level>>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait;
fn get_captcha_cooldown<'life0, 'life1, 'async_trait>(
&'life0 self,
- captcha_key: &'life1 str
- ) -> Pin<Box<dyn Future<Output = DBResult<i32>> + Send + 'async_trait>>
+ captcha_key: &'life1 str,
+ ) -> Pin<Box<dyn Future<Output = DBResult<i32>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait;
fn add_traffic_pattern<'life0, 'life1, 'life2, 'life3, 'async_trait>(
&'life0 self,
- username: &'life1 str,
- captcha_key: &'life2 str,
- pattern: &'life3 TrafficPattern
- ) -> Pin<Box<dyn Future<Output = DBResult<()>> + Send + 'async_trait>>
+ username: &'life1 str,
+ captcha_key: &'life2 str,
+ pattern: &'life3 TrafficPattern,
+ ) -> Pin<Box<dyn Future<Output = DBResult<()>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
@@ -206,578 +208,578 @@
'life3: 'async_trait;
fn get_traffic_pattern<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
- username: &'life1 str,
- captcha_key: &'life2 str
- ) -> Pin<Box<dyn Future<Output = DBResult<TrafficPattern>> + Send + 'async_trait>>
+ username: &'life1 str,
+ captcha_key: &'life2 str,
+ ) -> Pin<Box<dyn Future<Output = DBResult<TrafficPattern>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait;
fn get_all_easy_captchas<'life0, 'async_trait>(
&'life0 self,
- limit: usize,
- offset: usize
- ) -> Pin<Box<dyn Future<Output = DBResult<Vec<EasyCaptcha>>> + Send + 'async_trait>>
+ limit: usize,
+ offset: usize,
+ ) -> Pin<Box<dyn Future<Output = DBResult<Vec<EasyCaptcha>>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn delete_traffic_pattern<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
- username: &'life1 str,
- captcha_key: &'life2 str
- ) -> Pin<Box<dyn Future<Output = DBResult<()>> + Send + 'async_trait>>
+ username: &'life1 str,
+ captcha_key: &'life2 str,
+ ) -> Pin<Box<dyn Future<Output = DBResult<()>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait;
fn create_notification<'life0, 'life1, 'async_trait>(
&'life0 self,
- p: &'life1 AddNotification<'_>
- ) -> Pin<Box<dyn Future<Output = DBResult<()>> + Send + 'async_trait>>
+ p: &'life1 AddNotification<'_>,
+ ) -> Pin<Box<dyn Future<Output = DBResult<()>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait;
fn get_all_unread_notifications<'life0, 'life1, 'async_trait>(
&'life0 self,
- username: &'life1 str
- ) -> Pin<Box<dyn Future<Output = DBResult<Vec<Notification>>> + Send + 'async_trait>>
+ username: &'life1 str,
+ ) -> Pin<Box<dyn Future<Output = DBResult<Vec<Notification>>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait;
fn mark_notification_read<'life0, 'life1, 'async_trait>(
&'life0 self,
- username: &'life1 str,
- id: i32
- ) -> Pin<Box<dyn Future<Output = DBResult<()>> + Send + 'async_trait>>
+ username: &'life1 str,
+ id: i32,
+ ) -> Pin<Box<dyn Future<Output = DBResult<()>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait;
fn record_fetch<'life0, 'life1, 'async_trait>(
&'life0 self,
- key: &'life1 str
- ) -> Pin<Box<dyn Future<Output = DBResult<()>> + Send + 'async_trait>>
+ key: &'life1 str,
+ ) -> Pin<Box<dyn Future<Output = DBResult<()>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait;
fn record_solve<'life0, 'life1, 'async_trait>(
&'life0 self,
- key: &'life1 str
- ) -> Pin<Box<dyn Future<Output = DBResult<()>> + Send + 'async_trait>>
+ key: &'life1 str,
+ ) -> Pin<Box<dyn Future<Output = DBResult<()>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait;
fn record_confirm<'life0, 'life1, 'async_trait>(
&'life0 self,
- key: &'life1 str
- ) -> Pin<Box<dyn Future<Output = DBResult<()>> + Send + 'async_trait>>
+ key: &'life1 str,
+ ) -> Pin<Box<dyn Future<Output = DBResult<()>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait;
fn fetch_config_fetched<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
- user: &'life1 str,
- key: &'life2 str
- ) -> Pin<Box<dyn Future<Output = DBResult<Vec<i64>>> + Send + 'async_trait>>
+ user: &'life1 str,
+ key: &'life2 str,
+ ) -> Pin<Box<dyn Future<Output = DBResult<Vec<i64>>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait;
fn fetch_solve<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
- user: &'life1 str,
- key: &'life2 str
- ) -> Pin<Box<dyn Future<Output = DBResult<Vec<i64>>> + Send + 'async_trait>>
+ user: &'life1 str,
+ key: &'life2 str,
+ ) -> Pin<Box<dyn Future<Output = DBResult<Vec<i64>>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait;
fn fetch_confirm<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
- user: &'life1 str,
- key: &'life2 str
- ) -> Pin<Box<dyn Future<Output = DBResult<Vec<i64>>> + Send + 'async_trait>>
+ user: &'life1 str,
+ key: &'life2 str,
+ ) -> Pin<Box<dyn Future<Output = DBResult<Vec<i64>>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait;
fn analysis_save<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
- captcha_id: &'life1 str,
- d: &'life2 CreatePerformanceAnalytics
- ) -> Pin<Box<dyn Future<Output = DBResult<()>> + Send + 'async_trait>>
+ captcha_id: &'life1 str,
+ d: &'life2 CreatePerformanceAnalytics,
+ ) -> Pin<Box<dyn Future<Output = DBResult<()>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait;
fn analytics_fetch<'life0, 'life1, 'async_trait>(
&'life0 self,
- captcha_id: &'life1 str,
- limit: usize,
- offset: usize
- ) -> Pin<Box<dyn Future<Output = DBResult<Vec<PerformanceAnalytics>>> + Send + 'async_trait>>
+ captcha_id: &'life1 str,
+ limit: usize,
+ offset: usize,
+ ) -> Pin<Box<dyn Future<Output = DBResult<Vec<PerformanceAnalytics>>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait;
fn analytics_create_psuedo_id_if_not_exists<'life0, 'life1, 'async_trait>(
&'life0 self,
- captcha_id: &'life1 str
- ) -> Pin<Box<dyn Future<Output = DBResult<()>> + Send + 'async_trait>>
+ captcha_id: &'life1 str,
+ ) -> Pin<Box<dyn Future<Output = DBResult<()>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait;
fn analytics_get_psuedo_id_from_capmaign_id<'life0, 'life1, 'async_trait>(
&'life0 self,
- captcha_id: &'life1 str
- ) -> Pin<Box<dyn Future<Output = DBResult<String>> + Send + 'async_trait>>
+ captcha_id: &'life1 str,
+ ) -> Pin<Box<dyn Future<Output = DBResult<String>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait;
fn analytics_get_capmaign_id_from_psuedo_id<'life0, 'life1, 'async_trait>(
&'life0 self,
- psuedo_id: &'life1 str
- ) -> Pin<Box<dyn Future<Output = DBResult<String>> + Send + 'async_trait>>
+ psuedo_id: &'life1 str,
+ ) -> Pin<Box<dyn Future<Output = DBResult<String>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait;
fn analytics_delete_all_records_for_campaign<'life0, 'life1, 'async_trait>(
&'life0 self,
- campaign_id: &'life1 str
- ) -> Pin<Box<dyn Future<Output = DBResult<()>> + Send + 'async_trait>>
+ campaign_id: &'life1 str,
+ ) -> Pin<Box<dyn Future<Output = DBResult<()>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait;
fn analytics_get_all_psuedo_ids<'life0, 'async_trait>(
&'life0 self,
- page: usize
- ) -> Pin<Box<dyn Future<Output = DBResult<Vec<String>>> + Send + 'async_trait>>
+ page: usize,
+ ) -> Pin<Box<dyn Future<Output = DBResult<Vec<String>>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn update_max_nonce_for_level<'life0, 'life1, 'async_trait>(
&'life0 self,
- captcha_key: &'life1 str,
- difficulty_factor: u32,
- latest_nonce: u32
- ) -> Pin<Box<dyn Future<Output = DBResult<()>> + Send + 'async_trait>>
+ captcha_key: &'life1 str,
+ difficulty_factor: u32,
+ latest_nonce: u32,
+ ) -> Pin<Box<dyn Future<Output = DBResult<()>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait;
fn get_max_nonce_for_level<'life0, 'life1, 'async_trait>(
&'life0 self,
- captcha_key: &'life1 str,
- difficulty_factor: u32
- ) -> Pin<Box<dyn Future<Output = DBResult<u32>> + Send + 'async_trait>>
+ captcha_key: &'life1 str,
+ difficulty_factor: u32,
+ ) -> Pin<Box<dyn Future<Output = DBResult<u32>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait;
fn stats_get_num_logs_under_time<'life0, 'async_trait>(
&'life0 self,
- duration: u32
- ) -> Pin<Box<dyn Future<Output = DBResult<usize>> + Send + 'async_trait>>
+ duration: u32,
+ ) -> Pin<Box<dyn Future<Output = DBResult<usize>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn stats_get_entry_at_location_for_time_limit_asc<'life0, 'async_trait>(
&'life0 self,
- duration: u32,
- location: u32
- ) -> Pin<Box<dyn Future<Output = DBResult<Option<usize>>> + Send + 'async_trait>>
+ duration: u32,
+ location: u32,
+ ) -> Pin<Box<dyn Future<Output = DBResult<Option<usize>>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
// Provided method
fn analytics_captcha_is_published<'life0, 'life1, 'async_trait>(
&'life0 self,
- campaign_id: &'life1 str
- ) -> Pin<Box<dyn Future<Output = DBResult<bool>> + Send + 'async_trait>>
+ campaign_id: &'life1 str,
+ ) -> Pin<Box<dyn Future<Output = DBResult<bool>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait { ... }
}
Expand description
mCaptcha’s database requirements. To implement support for $Database, kindly implement this
trait.
-Required Methods§
sourcefn ping<'life0, 'async_trait>(
- &'life0 self
-) -> Pin<Box<dyn Future<Output = bool> + Send + 'async_trait>>where
+
Required Methods§
Sourcefn register<'life0, 'life1, 'async_trait>(
&'life0 self,
- p: &'life1 Register<'_>
-) -> Pin<Box<dyn Future<Output = DBResult<()>> + Send + 'async_trait>>
Sourcefn delete_user<'life0, 'life1, 'async_trait>(
&'life0 self,
- username: &'life1 str
-) -> Pin<Box<dyn Future<Output = DBResult<()>> + Send + 'async_trait>>
Sourcefn username_exists<'life0, 'life1, 'async_trait>(
&'life0 self,
- username: &'life1 str
-) -> Pin<Box<dyn Future<Output = DBResult<bool>> + Send + 'async_trait>>
Sourcefn get_email<'life0, 'life1, 'async_trait>(
&'life0 self,
- username: &'life1 str
-) -> Pin<Box<dyn Future<Output = DBResult<Option<String>>> + Send + 'async_trait>>
Sourcefn email_exists<'life0, 'life1, 'async_trait>(
&'life0 self,
- email: &'life1 str
-) -> Pin<Box<dyn Future<Output = DBResult<bool>> + Send + 'async_trait>>
Sourcefn update_email<'life0, 'life1, 'async_trait>(
&'life0 self,
- p: &'life1 UpdateEmail<'_>
-) -> Pin<Box<dyn Future<Output = DBResult<()>> + Send + 'async_trait>>where
+ p: &'life1 UpdateEmail<'_>,
+) -> Pin<Box<dyn Future<Output = DBResult<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,update a user’s email
-sourcefn get_password<'life0, 'life1, 'async_trait>(
+
Sourcefn get_password<'life0, 'life1, 'async_trait>(
&'life0 self,
- l: &'life1 Login<'_>
-) -> Pin<Box<dyn Future<Output = DBResult<NameHash>> + Send + 'async_trait>>
Sourcefn update_password<'life0, 'life1, 'async_trait>(
&'life0 self,
- p: &'life1 NameHash
-) -> Pin<Box<dyn Future<Output = DBResult<()>> + Send + 'async_trait>>
Sourcefn update_username<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
- current: &'life1 str,
- new: &'life2 str
-) -> Pin<Box<dyn Future<Output = DBResult<()>> + Send + 'async_trait>>
Sourcefn get_secret<'life0, 'life1, 'async_trait>(
&'life0 self,
- username: &'life1 str
-) -> Pin<Box<dyn Future<Output = DBResult<Secret>> + Send + 'async_trait>>
Sourcefn get_secret_from_captcha<'life0, 'life1, 'async_trait>(
&'life0 self,
- key: &'life1 str
-) -> Pin<Box<dyn Future<Output = DBResult<Secret>> + Send + 'async_trait>>
Sourcefn update_secret<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
- username: &'life1 str,
- secret: &'life2 str
-) -> Pin<Box<dyn Future<Output = DBResult<()>> + Send + 'async_trait>>where
+ username: &'life1 str,
+ secret: &'life2 str,
+) -> Pin<Box<dyn Future<Output = DBResult<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,update a user’s secret
-sourcefn create_captcha<'life0, 'life1, 'life2, 'async_trait>(
+
Sourcefn create_captcha<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
- username: &'life1 str,
- p: &'life2 CreateCaptcha<'_>
-) -> Pin<Box<dyn Future<Output = DBResult<()>> + Send + 'async_trait>>where
+ username: &'life1 str,
+ p: &'life2 CreateCaptcha<'_>,
+) -> Pin<Box<dyn Future<Output = DBResult<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,create new captcha
-sourcefn get_captcha_config<'life0, 'life1, 'life2, 'async_trait>(
+
Sourcefn get_captcha_config<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
- username: &'life1 str,
- key: &'life2 str
-) -> Pin<Box<dyn Future<Output = DBResult<Captcha>> + Send + 'async_trait>>where
+ username: &'life1 str,
+ key: &'life2 str,
+) -> Pin<Box<dyn Future<Output = DBResult<Captcha>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,Get captcha config
-sourcefn get_all_user_captchas<'life0, 'life1, 'async_trait>(
+
Sourcefn get_all_user_captchas<'life0, 'life1, 'async_trait>(
&'life0 self,
- username: &'life1 str
-) -> Pin<Box<dyn Future<Output = DBResult<Vec<Captcha>>> + Send + 'async_trait>>
Sourcefn update_captcha_metadata<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
- username: &'life1 str,
- p: &'life2 CreateCaptcha<'_>
-) -> Pin<Box<dyn Future<Output = DBResult<()>> + Send + 'async_trait>>where
+ username: &'life1 str,
+ p: &'life2 CreateCaptcha<'_>,
+) -> Pin<Box<dyn Future<Output = DBResult<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,update captcha metadata; doesn’t change captcha key
-sourcefn update_captcha_key<'life0, 'life1, 'life2, 'life3, 'async_trait>(
+
Sourcefn update_captcha_key<'life0, 'life1, 'life2, 'life3, 'async_trait>(
&'life0 self,
- username: &'life1 str,
- old_key: &'life2 str,
- new_key: &'life3 str
-) -> Pin<Box<dyn Future<Output = DBResult<()>> + Send + 'async_trait>>where
+ username: &'life1 str,
+ old_key: &'life2 str,
+ new_key: &'life3 str,
+) -> Pin<Box<dyn Future<Output = DBResult<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
'life3: 'async_trait,update captcha key; doesn’t change metadata
-sourcefn add_captcha_levels<'life0, 'life1, 'life2, 'life3, 'async_trait>(
+
Sourcefn add_captcha_levels<'life0, 'life1, 'life2, 'life3, 'async_trait>(
&'life0 self,
- username: &'life1 str,
- captcha_key: &'life2 str,
- levels: &'life3 [Level]
-) -> Pin<Box<dyn Future<Output = DBResult<()>> + Send + 'async_trait>>where
+ username: &'life1 str,
+ captcha_key: &'life2 str,
+ levels: &'life3 [Level],
+) -> Pin<Box<dyn Future<Output = DBResult<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
'life3: 'async_trait,Add levels to captcha
-sourcefn captcha_exists<'life0, 'life1, 'life2, 'async_trait>(
+
Sourcefn captcha_exists<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
- username: Option<&'life1 str>,
- captcha_key: &'life2 str
-) -> Pin<Box<dyn Future<Output = DBResult<bool>> + Send + 'async_trait>>where
+ username: Option<&'life1 str>,
+ captcha_key: &'life2 str,
+) -> Pin<Box<dyn Future<Output = DBResult<bool>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,check if captcha exists
-sourcefn delete_captcha_levels<'life0, 'life1, 'life2, 'async_trait>(
+
Sourcefn delete_captcha_levels<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
- username: &'life1 str,
- captcha_key: &'life2 str
-) -> Pin<Box<dyn Future<Output = DBResult<()>> + Send + 'async_trait>>where
+ username: &'life1 str,
+ captcha_key: &'life2 str,
+) -> Pin<Box<dyn Future<Output = DBResult<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,Delete all levels of a captcha
-sourcefn delete_captcha<'life0, 'life1, 'life2, 'async_trait>(
+
Sourcefn delete_captcha<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
- username: &'life1 str,
- captcha_key: &'life2 str
-) -> Pin<Box<dyn Future<Output = DBResult<()>> + Send + 'async_trait>>where
+ username: &'life1 str,
+ captcha_key: &'life2 str,
+) -> Pin<Box<dyn Future<Output = DBResult<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,Delete captcha
-sourcefn get_captcha_levels<'life0, 'life1, 'life2, 'async_trait>(
+
Sourcefn get_captcha_levels<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
- username: Option<&'life1 str>,
- captcha_key: &'life2 str
-) -> Pin<Box<dyn Future<Output = DBResult<Vec<Level>>> + Send + 'async_trait>>where
+ username: Option<&'life1 str>,
+ captcha_key: &'life2 str,
+) -> Pin<Box<dyn Future<Output = DBResult<Vec<Level>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,Get captcha levels
-sourcefn get_captcha_cooldown<'life0, 'life1, 'async_trait>(
+
Sourcefn get_captcha_cooldown<'life0, 'life1, 'async_trait>(
&'life0 self,
- captcha_key: &'life1 str
-) -> Pin<Box<dyn Future<Output = DBResult<i32>> + Send + 'async_trait>>
Sourcefn add_traffic_pattern<'life0, 'life1, 'life2, 'life3, 'async_trait>(
&'life0 self,
- username: &'life1 str,
- captcha_key: &'life2 str,
- pattern: &'life3 TrafficPattern
-) -> Pin<Box<dyn Future<Output = DBResult<()>> + Send + 'async_trait>>where
+ username: &'life1 str,
+ captcha_key: &'life2 str,
+ pattern: &'life3 TrafficPattern,
+) -> Pin<Box<dyn Future<Output = DBResult<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
'life3: 'async_trait,Add traffic configuration
-sourcefn get_traffic_pattern<'life0, 'life1, 'life2, 'async_trait>(
+
Sourcefn get_traffic_pattern<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
- username: &'life1 str,
- captcha_key: &'life2 str
-) -> Pin<Box<dyn Future<Output = DBResult<TrafficPattern>> + Send + 'async_trait>>where
+ username: &'life1 str,
+ captcha_key: &'life2 str,
+) -> Pin<Box<dyn Future<Output = DBResult<TrafficPattern>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,Get traffic configuration
-sourcefn get_all_easy_captchas<'life0, 'async_trait>(
+
Sourcefn get_all_easy_captchas<'life0, 'async_trait>(
&'life0 self,
- limit: usize,
- offset: usize
-) -> Pin<Box<dyn Future<Output = DBResult<Vec<EasyCaptcha>>> + Send + 'async_trait>>
Sourcefn delete_traffic_pattern<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
- username: &'life1 str,
- captcha_key: &'life2 str
-) -> Pin<Box<dyn Future<Output = DBResult<()>> + Send + 'async_trait>>where
+ username: &'life1 str,
+ captcha_key: &'life2 str,
+) -> Pin<Box<dyn Future<Output = DBResult<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,Delete traffic configuration
-sourcefn create_notification<'life0, 'life1, 'async_trait>(
+
Sourcefn create_notification<'life0, 'life1, 'async_trait>(
&'life0 self,
- p: &'life1 AddNotification<'_>
-) -> Pin<Box<dyn Future<Output = DBResult<()>> + Send + 'async_trait>>where
+ p: &'life1 AddNotification<'_>,
+) -> Pin<Box<dyn Future<Output = DBResult<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,create new notification
-sourcefn get_all_unread_notifications<'life0, 'life1, 'async_trait>(
+
Sourcefn get_all_unread_notifications<'life0, 'life1, 'async_trait>(
&'life0 self,
- username: &'life1 str
-) -> Pin<Box<dyn Future<Output = DBResult<Vec<Notification>>> + Send + 'async_trait>>where
+ username: &'life1 str,
+) -> Pin<Box<dyn Future<Output = DBResult<Vec<Notification>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,get all unread notifications
-sourcefn mark_notification_read<'life0, 'life1, 'async_trait>(
+
Sourcefn mark_notification_read<'life0, 'life1, 'async_trait>(
&'life0 self,
- username: &'life1 str,
- id: i32
-) -> Pin<Box<dyn Future<Output = DBResult<()>> + Send + 'async_trait>>
Sourcefn record_fetch<'life0, 'life1, 'async_trait>(
&'life0 self,
- key: &'life1 str
-) -> Pin<Box<dyn Future<Output = DBResult<()>> + Send + 'async_trait>>
Sourcefn record_solve<'life0, 'life1, 'async_trait>(
&'life0 self,
- key: &'life1 str
-) -> Pin<Box<dyn Future<Output = DBResult<()>> + Send + 'async_trait>>
Sourcefn record_confirm<'life0, 'life1, 'async_trait>(
&'life0 self,
- key: &'life1 str
-) -> Pin<Box<dyn Future<Output = DBResult<()>> + Send + 'async_trait>>
Sourcefn fetch_config_fetched<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
- user: &'life1 str,
- key: &'life2 str
-) -> Pin<Box<dyn Future<Output = DBResult<Vec<i64>>> + Send + 'async_trait>>where
+ user: &'life1 str,
+ key: &'life2 str,
+) -> Pin<Box<dyn Future<Output = DBResult<Vec<i64>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,fetch PoWConfig fetches
-sourcefn fetch_solve<'life0, 'life1, 'life2, 'async_trait>(
+
Sourcefn fetch_solve<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
- user: &'life1 str,
- key: &'life2 str
-) -> Pin<Box<dyn Future<Output = DBResult<Vec<i64>>> + Send + 'async_trait>>where
+ user: &'life1 str,
+ key: &'life2 str,
+) -> Pin<Box<dyn Future<Output = DBResult<Vec<i64>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,fetch PoWConfig solves
-sourcefn fetch_confirm<'life0, 'life1, 'life2, 'async_trait>(
+
Sourcefn fetch_confirm<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
- user: &'life1 str,
- key: &'life2 str
-) -> Pin<Box<dyn Future<Output = DBResult<Vec<i64>>> + Send + 'async_trait>>where
+ user: &'life1 str,
+ key: &'life2 str,
+) -> Pin<Box<dyn Future<Output = DBResult<Vec<i64>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,fetch PoWConfig confirms
-sourcefn analysis_save<'life0, 'life1, 'life2, 'async_trait>(
+
Sourcefn analysis_save<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
- captcha_id: &'life1 str,
- d: &'life2 CreatePerformanceAnalytics
-) -> Pin<Box<dyn Future<Output = DBResult<()>> + Send + 'async_trait>>where
+ captcha_id: &'life1 str,
+ d: &'life2 CreatePerformanceAnalytics,
+) -> Pin<Box<dyn Future<Output = DBResult<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,record PoW timing
-sourcefn analytics_fetch<'life0, 'life1, 'async_trait>(
+
Sourcefn analytics_fetch<'life0, 'life1, 'async_trait>(
&'life0 self,
- captcha_id: &'life1 str,
- limit: usize,
- offset: usize
-) -> Pin<Box<dyn Future<Output = DBResult<Vec<PerformanceAnalytics>>> + Send + 'async_trait>>where
+ captcha_id: &'life1 str,
+ limit: usize,
+ offset: usize,
+) -> Pin<Box<dyn Future<Output = DBResult<Vec<PerformanceAnalytics>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,fetch PoW analytics
-sourcefn analytics_create_psuedo_id_if_not_exists<'life0, 'life1, 'async_trait>(
+
Sourcefn analytics_create_psuedo_id_if_not_exists<'life0, 'life1, 'async_trait>(
&'life0 self,
- captcha_id: &'life1 str
-) -> Pin<Box<dyn Future<Output = DBResult<()>> + Send + 'async_trait>>where
+ captcha_id: &'life1 str,
+) -> Pin<Box<dyn Future<Output = DBResult<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,Create psuedo ID against campaign ID to publish analytics
-sourcefn analytics_get_psuedo_id_from_capmaign_id<'life0, 'life1, 'async_trait>(
+
Sourcefn analytics_get_psuedo_id_from_capmaign_id<'life0, 'life1, 'async_trait>(
&'life0 self,
- captcha_id: &'life1 str
-) -> Pin<Box<dyn Future<Output = DBResult<String>> + Send + 'async_trait>>
Sourcefn analytics_get_capmaign_id_from_psuedo_id<'life0, 'life1, 'async_trait>(
&'life0 self,
- psuedo_id: &'life1 str
-) -> Pin<Box<dyn Future<Output = DBResult<String>> + Send + 'async_trait>>
Sourcefn analytics_delete_all_records_for_campaign<'life0, 'life1, 'async_trait>(
&'life0 self,
- campaign_id: &'life1 str
-) -> Pin<Box<dyn Future<Output = DBResult<()>> + Send + 'async_trait>>
Sourcefn analytics_get_all_psuedo_ids<'life0, 'async_trait>(
&'life0 self,
- page: usize
-) -> Pin<Box<dyn Future<Output = DBResult<Vec<String>>> + Send + 'async_trait>>
Sourcefn update_max_nonce_for_level<'life0, 'life1, 'async_trait>(
&'life0 self,
- captcha_key: &'life1 str,
- difficulty_factor: u32,
- latest_nonce: u32
-) -> Pin<Box<dyn Future<Output = DBResult<()>> + Send + 'async_trait>>where
+ captcha_key: &'life1 str,
+ difficulty_factor: u32,
+ latest_nonce: u32,
+) -> Pin<Box<dyn Future<Output = DBResult<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,Track maximum nonce received against captcha levels
-sourcefn get_max_nonce_for_level<'life0, 'life1, 'async_trait>(
+
Sourcefn get_max_nonce_for_level<'life0, 'life1, 'async_trait>(
&'life0 self,
- captcha_key: &'life1 str,
- difficulty_factor: u32
-) -> Pin<Box<dyn Future<Output = DBResult<u32>> + Send + 'async_trait>>where
+ captcha_key: &'life1 str,
+ difficulty_factor: u32,
+) -> Pin<Box<dyn Future<Output = DBResult<u32>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,Get maximum nonce tracked so far for captcha levels
-sourcefn stats_get_num_logs_under_time<'life0, 'async_trait>(
+
Sourcefn stats_get_num_logs_under_time<'life0, 'async_trait>(
&'life0 self,
- duration: u32
-) -> Pin<Box<dyn Future<Output = DBResult<usize>> + Send + 'async_trait>>
Sourcefn stats_get_entry_at_location_for_time_limit_asc<'life0, 'async_trait>(
&'life0 self,
- duration: u32,
- location: u32
-) -> Pin<Box<dyn Future<Output = DBResult<Option<usize>>> + Send + 'async_trait>>where
+ duration: u32,
+ location: u32,
+) -> Pin<Box<dyn Future<Output = DBResult<Option<usize>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,Get the entry at a location in the list of analytics entires under a certain time limit
and sorted in ascending order
-Provided Methods§
sourcefn analytics_captcha_is_published<'life0, 'life1, 'async_trait>(
+
Provided Methods§
Sourcefn analytics_captcha_is_published<'life0, 'life1, 'async_trait>(
&'life0 self,
- campaign_id: &'life1 str
-) -> Pin<Box<dyn Future<Output = DBResult<bool>> + Send + 'async_trait>>where
+ campaign_id: &'life1 str,
+) -> Pin<Box<dyn Future<Output = DBResult<bool>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,Get publishing status of pow analytics for captcha ID/ campaign ID
-Trait Implementations§
Implementors§
\ No newline at end of file
+
Trait Implementations§
Implementors§
\ No newline at end of file
diff --git a/db_sqlx_maria/all.html b/db_sqlx_maria/all.html
index 0885d255..86c793fb 100644
--- a/db_sqlx_maria/all.html
+++ b/db_sqlx_maria/all.html
@@ -1,2 +1 @@
-List of all items in this crate
- List of all items
Structs
- Conn
- Database
- Fresh
- InnerNotification
- dev::AddNotification
- dev::Captcha
- dev::CreateCaptcha
- dev::CreatePerformanceAnalytics
- dev::EasyCaptcha
- dev::Level
- dev::NameHash
- dev::Notification
- dev::PerformanceAnalytics
- dev::Register
- dev::Secret
- dev::StatsUnixTimestamp
- dev::TrafficPattern
- dev::UpdateEmail
- dev::prelude::AddNotification
- dev::prelude::Captcha
- dev::prelude::CreateCaptcha
- dev::prelude::CreatePerformanceAnalytics
- dev::prelude::EasyCaptcha
- dev::prelude::Level
- dev::prelude::NameHash
- dev::prelude::Notification
- dev::prelude::PerformanceAnalytics
- dev::prelude::Register
- dev::prelude::Secret
- dev::prelude::StatsUnixTimestamp
- dev::prelude::TrafficPattern
- dev::prelude::UpdateEmail
- dev::prelude::dev::AddNotification
- dev::prelude::dev::Captcha
- dev::prelude::dev::CreateCaptcha
- dev::prelude::dev::CreatePerformanceAnalytics
- dev::prelude::dev::EasyCaptcha
- dev::prelude::dev::Level
- dev::prelude::dev::NameHash
- dev::prelude::dev::Notification
- dev::prelude::dev::PerformanceAnalytics
- dev::prelude::dev::Register
- dev::prelude::dev::Secret
- dev::prelude::dev::StatsUnixTimestamp
- dev::prelude::dev::TrafficPattern
- dev::prelude::dev::UpdateEmail
Enums
- ConnectionOptions
- dev::DBError
- dev::Error
- dev::Login
- dev::errors::DBError
- dev::prelude::DBError
- dev::prelude::Login
- dev::prelude::dev::DBError
- dev::prelude::dev::Login
Traits
- dev::CloneSPDatabase
- dev::Connect
- dev::DBOps
- dev::GetConnection
- dev::MCDatabase
- dev::Migrate
- dev::ops::Connect
- dev::ops::DBOps
- dev::ops::GetConnection
- dev::ops::Migrate
- dev::prelude::CloneSPDatabase
- dev::prelude::Connect
- dev::prelude::DBOps
- dev::prelude::GetConnection
- dev::prelude::MCDatabase
- dev::prelude::Migrate
- dev::prelude::dev::CloneSPDatabase
- dev::prelude::dev::Connect
- dev::prelude::dev::DBOps
- dev::prelude::dev::GetConnection
- dev::prelude::dev::MCDatabase
- dev::prelude::dev::Migrate
Attribute Macros
Functions
Type Aliases
- dev::BoxDynError
- dev::DBResult
- dev::errors::BoxDynError
- dev::errors::DBResult
- dev::prelude::BoxDynError
- dev::prelude::DBResult
- dev::prelude::dev::BoxDynError
- dev::prelude::dev::DBResult
Constants
\ No newline at end of file
+List of all items in this crate List of all items
Structs
- Conn
- Database
- Fresh
- InnerNotification
- dev::AddNotification
- dev::Captcha
- dev::CreateCaptcha
- dev::CreatePerformanceAnalytics
- dev::EasyCaptcha
- dev::Level
- dev::NameHash
- dev::Notification
- dev::PerformanceAnalytics
- dev::Register
- dev::Secret
- dev::StatsUnixTimestamp
- dev::TrafficPattern
- dev::UpdateEmail
- dev::prelude::AddNotification
- dev::prelude::Captcha
- dev::prelude::CreateCaptcha
- dev::prelude::CreatePerformanceAnalytics
- dev::prelude::EasyCaptcha
- dev::prelude::Level
- dev::prelude::NameHash
- dev::prelude::Notification
- dev::prelude::PerformanceAnalytics
- dev::prelude::Register
- dev::prelude::Secret
- dev::prelude::StatsUnixTimestamp
- dev::prelude::TrafficPattern
- dev::prelude::UpdateEmail
- dev::prelude::dev::AddNotification
- dev::prelude::dev::Captcha
- dev::prelude::dev::CreateCaptcha
- dev::prelude::dev::CreatePerformanceAnalytics
- dev::prelude::dev::EasyCaptcha
- dev::prelude::dev::Level
- dev::prelude::dev::NameHash
- dev::prelude::dev::Notification
- dev::prelude::dev::PerformanceAnalytics
- dev::prelude::dev::Register
- dev::prelude::dev::Secret
- dev::prelude::dev::StatsUnixTimestamp
- dev::prelude::dev::TrafficPattern
- dev::prelude::dev::UpdateEmail
Enums
- ConnectionOptions
- dev::DBError
- dev::Error
- dev::Login
- dev::errors::DBError
- dev::prelude::DBError
- dev::prelude::Login
- dev::prelude::dev::DBError
- dev::prelude::dev::Login
Traits
- dev::CloneSPDatabase
- dev::Connect
- dev::DBOps
- dev::GetConnection
- dev::MCDatabase
- dev::Migrate
- dev::ops::Connect
- dev::ops::DBOps
- dev::ops::GetConnection
- dev::ops::Migrate
- dev::prelude::CloneSPDatabase
- dev::prelude::Connect
- dev::prelude::DBOps
- dev::prelude::GetConnection
- dev::prelude::MCDatabase
- dev::prelude::Migrate
- dev::prelude::dev::CloneSPDatabase
- dev::prelude::dev::Connect
- dev::prelude::dev::DBOps
- dev::prelude::dev::GetConnection
- dev::prelude::dev::MCDatabase
- dev::prelude::dev::Migrate
Attribute Macros
Functions
Type Aliases
- dev::BoxDynError
- dev::DBResult
- dev::errors::BoxDynError
- dev::errors::DBResult
- dev::prelude::BoxDynError
- dev::prelude::DBResult
- dev::prelude::dev::BoxDynError
- dev::prelude::dev::DBResult
Constants
\ No newline at end of file
diff --git a/db_sqlx_maria/dev/attr.async_trait.html b/db_sqlx_maria/dev/attr.async_trait.html
index f2604f45..d51fda7b 100644
--- a/db_sqlx_maria/dev/attr.async_trait.html
+++ b/db_sqlx_maria/dev/attr.async_trait.html
@@ -1,2 +1 @@
-async_trait in db_sqlx_maria::dev - Rust
- Attribute Macro db_sqlx_maria::dev::async_trait
#[async_trait]
\ No newline at end of file
+async_trait in db_sqlx_maria::dev - Rust #[async_trait]
\ No newline at end of file
diff --git a/db_sqlx_maria/dev/enum.DBError.html b/db_sqlx_maria/dev/enum.DBError.html
index a852a5c3..462d3f72 100644
--- a/db_sqlx_maria/dev/enum.DBError.html
+++ b/db_sqlx_maria/dev/enum.DBError.html
@@ -1,6 +1,5 @@
-DBError in db_sqlx_maria::dev - Rust
- Enum db_sqlx_maria::dev::DBError
pub enum DBError {
- DBError(Box<dyn Error + Send + Sync>),
+DBError in db_sqlx_maria::dev - Rust Enum DBError
pub enum DBError {
+ DBError(Box<dyn Error + Sync + Send>),
UsernameTaken,
EmailTaken,
SecretTaken,
@@ -10,7 +9,7 @@
TrafficPatternNotFound,
NotificationNotFound,
}
Expand description
Error data structure grouping various error subtypes
-Variants§
§DBError(Box<dyn Error + Send + Sync>)
errors that are specific to a database implementation
+Variants§
§DBError(Box<dyn Error + Sync + Send>)
errors that are specific to a database implementation
§UsernameTaken
Username is taken
§EmailTaken
Email is taken
§SecretTaken
Secret is taken
@@ -19,21 +18,29 @@
§CaptchaNotFound
Captcha not found
§TrafficPatternNotFound
Traffic pattern not found
§NotificationNotFound
Notification not found
-Trait Implementations§
§impl Error for DBError
§fn source(&self) -> Option<&(dyn Error + 'static)>
The lower-level source of this error, if any. Read more1.0.0 · source§fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()Auto Trait Implementations§
§impl !RefUnwindSafe for DBError
§impl Send for DBError
§impl Sync for DBError
§impl Unpin for DBError
§impl !UnwindSafe for DBError
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
- T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read moresource§impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
source§impl<T, U> Into<U> for Twhere
- U: From<T>,
Trait Implementations§
§impl Error for DBError
§fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more1.0.0 · Source§fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()Auto Trait Implementations§
§impl Freeze for DBError
§impl !RefUnwindSafe for DBError
§impl Send for DBError
§impl Sync for DBError
§impl Unpin for DBError
§impl !UnwindSafe for DBError
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
+ T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more§impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
source§impl<T> WithSubscriber for T
source§fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>where
- S: Into<Dispatch>,
source§fn with_current_subscriber(self) -> WithDispatch<Self>
\ No newline at end of file
+From<T> for U chooses to do.
+Source§impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts self into a Left variant of Either<Self, Self>
+if into_left is true.
+Converts self into a Right variant of Either<Self, Self>
+otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts self into a Left variant of Either<Self, Self>
+if into_left(&self) returns true.
+Converts self into a Right variant of Either<Self, Self>
+otherwise. Read more§impl<T> WithSubscriber for T
§fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>where
+ S: Into<Dispatch>,
§fn with_current_subscriber(self) -> WithDispatch<Self>
Attaches the current default Subscriber to this type, returning a
+[WithDispatch] wrapper. Read more§impl<T> ErasedDestructor for Twhere
+ T: 'static,
§impl<T> MaybeSendSync for T
\ No newline at end of file
diff --git a/db_sqlx_maria/dev/enum.Error.html b/db_sqlx_maria/dev/enum.Error.html
index 7dee7c48..90e69ac9 100644
--- a/db_sqlx_maria/dev/enum.Error.html
+++ b/db_sqlx_maria/dev/enum.Error.html
@@ -1,64 +1,78 @@
-Error in db_sqlx_maria::dev - Rust
- Enum db_sqlx_maria::dev::Error
#[non_exhaustive]pub enum Error {
-Show 16 variants
Configuration(Box<dyn Error + Send + Sync>),
- Database(Box<dyn DatabaseError>),
- Io(Error),
- Tls(Box<dyn Error + Send + Sync>),
- Protocol(String),
+Error in db_sqlx_maria::dev - Rust Enum Error
#[non_exhaustive]pub enum Error {
+Show 20 variants
Configuration(Box<dyn Error + Sync + Send>),
+ InvalidArgument(String),
+ Database(Box<dyn DatabaseError>),
+ Io(Error),
+ Tls(Box<dyn Error + Sync + Send>),
+ Protocol(String),
RowNotFound,
TypeNotFound {
- type_name: String,
+ type_name: String,
},
ColumnIndexOutOfBounds {
- index: usize,
- len: usize,
+ index: usize,
+ len: usize,
},
- ColumnNotFound(String),
+ ColumnNotFound(String),
ColumnDecode {
- index: String,
- source: Box<dyn Error + Send + Sync>,
+ index: String,
+ source: Box<dyn Error + Sync + Send>,
},
- Decode(Box<dyn Error + Send + Sync>),
- AnyDriverError(Box<dyn Error + Send + Sync>),
+ Encode(Box<dyn Error + Sync + Send>),
+ Decode(Box<dyn Error + Sync + Send>),
+ AnyDriverError(Box<dyn Error + Sync + Send>),
PoolTimedOut,
PoolClosed,
WorkerCrashed,
- Migrate(Box<MigrateError>),
+ Migrate(Box<MigrateError>),
+ InvalidSavePointStatement,
+ BeginFailed,
}
Expand description
Represents all the ways a method can fail within SQLx.
-Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.§Configuration(Box<dyn Error + Send + Sync>)
Error occurred while parsing a connection string.
-§Database(Box<dyn DatabaseError>)
Error returned from the database.
-§Io(Error)
Error communicating with the database backend.
-§Tls(Box<dyn Error + Send + Sync>)
Error occurred while attempting to establish a TLS connection.
-§Protocol(String)
Unexpected or invalid data encountered while communicating with the database.
+Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.§Configuration(Box<dyn Error + Sync + Send>)
Error occurred while parsing a connection string.
+§InvalidArgument(String)
One or more of the arguments to the called function was invalid.
+The string contains more information.
+§Database(Box<dyn DatabaseError>)
Error returned from the database.
+§Io(Error)
Error communicating with the database backend.
+§Tls(Box<dyn Error + Sync + Send>)
Error occurred while attempting to establish a TLS connection.
+§Protocol(String)
Unexpected or invalid data encountered while communicating with the database.
This should indicate there is a programming error in a SQLx driver or there
is something corrupted with the connection to the database itself.
§RowNotFound
No rows returned by a query that expected to return at least one row.
-§TypeNotFound
Type in query doesn’t exist. Likely due to typo or missing user type.
-§ColumnIndexOutOfBounds
Column index was out of bounds.
-§ColumnNotFound(String)
No column found for the given name.
-§ColumnDecode
Error occurred while decoding a value from a specific column.
-§Decode(Box<dyn Error + Send + Sync>)
Error occurred while decoding a value.
-§AnyDriverError(Box<dyn Error + Send + Sync>)
Error occurred within the Any driver mapping to/from the native driver.
+§TypeNotFound
Type in query doesn’t exist. Likely due to typo or missing user type.
+§ColumnIndexOutOfBounds
Column index was out of bounds.
+§ColumnNotFound(String)
No column found for the given name.
+§ColumnDecode
Error occurred while decoding a value from a specific column.
+§Encode(Box<dyn Error + Sync + Send>)
Error occured while encoding a value.
+§Decode(Box<dyn Error + Sync + Send>)
Error occurred while decoding a value.
+§AnyDriverError(Box<dyn Error + Sync + Send>)
Error occurred within the Any driver mapping to/from the native driver.
§PoolTimedOut
A Pool::acquire timed out due to connections not becoming available or
because another task encountered too many errors while trying to open a new connection.
§PoolClosed
Pool::close was called while we were waiting in Pool::acquire.
§WorkerCrashed
A background worker has crashed.
-§Migrate(Box<MigrateError>)
Implementations§
§impl Error
pub fn into_database_error(self) -> Option<Box<dyn DatabaseError>>
pub fn as_database_error(&self) -> Option<&(dyn DatabaseError + 'static)>
Trait Implementations§
§impl Error for Error
§fn source(&self) -> Option<&(dyn Error + 'static)>
The lower-level source of this error, if any. Read more1.0.0 · source§fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()Auto Trait Implementations§
§impl !RefUnwindSafe for Error
§impl Send for Error
§impl Sync for Error
§impl Unpin for Error
§impl !UnwindSafe for Error
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
- T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read moresource§impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
source§impl<T, U> Into<U> for Twhere
- U: From<T>,
Implementations§
§impl Error
pub fn into_database_error(self) -> Option<Box<dyn DatabaseError>>
pub fn as_database_error(&self) -> Option<&(dyn DatabaseError + 'static)>
Trait Implementations§
§impl Error for Error
§fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more1.0.0 · Source§fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()Auto Trait Implementations§
§impl Freeze for Error
§impl !RefUnwindSafe for Error
§impl Send for Error
§impl Sync for Error
§impl Unpin for Error
§impl !UnwindSafe for Error
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
+ T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more§impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
source§impl<T> WithSubscriber for T
source§fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>where
- S: Into<Dispatch>,
source§fn with_current_subscriber(self) -> WithDispatch<Self>
\ No newline at end of file
+From<T> for U chooses to do.
+Source§impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts self into a Left variant of Either<Self, Self>
+if into_left is true.
+Converts self into a Right variant of Either<Self, Self>
+otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts self into a Left variant of Either<Self, Self>
+if into_left(&self) returns true.
+Converts self into a Right variant of Either<Self, Self>
+otherwise. Read more§impl<T> WithSubscriber for T
§fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>where
+ S: Into<Dispatch>,
§fn with_current_subscriber(self) -> WithDispatch<Self>
Attaches the current default Subscriber to this type, returning a
+[WithDispatch] wrapper. Read more§impl<T> ErasedDestructor for Twhere
+ T: 'static,
§impl<T> MaybeSendSync for T
\ No newline at end of file
diff --git a/db_sqlx_maria/dev/enum.Login.html b/db_sqlx_maria/dev/enum.Login.html
index ba56d8e4..412eecd5 100644
--- a/db_sqlx_maria/dev/enum.Login.html
+++ b/db_sqlx_maria/dev/enum.Login.html
@@ -1,36 +1,43 @@
-Login in db_sqlx_maria::dev - Rust
- Enum db_sqlx_maria::dev::Login
pub enum Login<'a> {
- Username(&'a str),
- Email(&'a str),
+Login in db_sqlx_maria::dev - Rust Enum Login
pub enum Login<'a> {
+ Username(&'a str),
+ Email(&'a str),
}
Expand description
types of credentials used as identifiers during login
-Variants§
Trait Implementations§
§impl<'de, 'a> Deserialize<'de> for Login<'a>where
- 'de: 'a,
§fn deserialize<__D>(
- __deserializer: __D
-) -> Result<Login<'a>, <__D as Deserializer<'de>>::Error>where
- __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more§impl<'a> PartialEq for Login<'a>
Variants§
Trait Implementations§
§impl<'de, 'a> Deserialize<'de> for Login<'a>where
+ 'de: 'a,
§fn deserialize<__D>(
+ __deserializer: __D,
+) -> Result<Login<'a>, <__D as Deserializer<'de>>::Error>where
+ __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more§impl<'a> Serialize for Login<'a>
§fn serialize<__S>(
&self,
- __serializer: __S
-) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
- __S: Serializer,
Serialize this value into the given Serde serializer. Read more§impl<'a> StructuralPartialEq for Login<'a>
Auto Trait Implementations§
§impl<'a> RefUnwindSafe for Login<'a>
§impl<'a> Send for Login<'a>
§impl<'a> Sync for Login<'a>
§impl<'a> Unpin for Login<'a>
§impl<'a> UnwindSafe for Login<'a>
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
- T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read moresource§impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
source§impl<T, U> Into<U> for Twhere
- U: From<T>,
source§fn into(self) -> U
Calls U::from(self).
+ __serializer: __S,
+) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
+ __S: Serializer,Serialize this value into the given Serde serializer. Read more§impl<'a> StructuralPartialEq for Login<'a>
Auto Trait Implementations§
§impl<'a> Freeze for Login<'a>
§impl<'a> RefUnwindSafe for Login<'a>
§impl<'a> Send for Login<'a>
§impl<'a> Sync for Login<'a>
§impl<'a> Unpin for Login<'a>
§impl<'a> UnwindSafe for Login<'a>
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
+ T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read moreSource§impl<T> CloneToUninit for Twhere
+ T: Clone,
§impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
source§impl<T> WithSubscriber for T
source§fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>where
- S: Into<Dispatch>,
source§fn with_current_subscriber(self) -> WithDispatch<Self>
source§impl<T> DeserializeOwned for Twhere
- T: for<'de> Deserialize<'de>,
\ No newline at end of file
+From<T> for U chooses to do.
+Source§impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts self into a Left variant of Either<Self, Self>
+if into_left is true.
+Converts self into a Right variant of Either<Self, Self>
+otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts self into a Left variant of Either<Self, Self>
+if into_left(&self) returns true.
+Converts self into a Right variant of Either<Self, Self>
+otherwise. Read more§impl<T> WithSubscriber for T
§fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>where
+ S: Into<Dispatch>,
§fn with_current_subscriber(self) -> WithDispatch<Self>
Attaches the current default Subscriber to this type, returning a
+[WithDispatch] wrapper. Read moreSource§impl<T> DeserializeOwned for Twhere
+ T: for<'de> Deserialize<'de>,
§impl<T> ErasedDestructor for Twhere
+ T: 'static,
§impl<T> MaybeSendSync for T
\ No newline at end of file
diff --git a/db_sqlx_maria/dev/errors/enum.DBError.html b/db_sqlx_maria/dev/errors/enum.DBError.html
index 9e7c195a..1561a263 100644
--- a/db_sqlx_maria/dev/errors/enum.DBError.html
+++ b/db_sqlx_maria/dev/errors/enum.DBError.html
@@ -1,6 +1,5 @@
-DBError in db_sqlx_maria::dev::errors - Rust
- Enum db_sqlx_maria::dev::errors::DBError
pub enum DBError {
- DBError(Box<dyn Error + Send + Sync>),
+DBError in db_sqlx_maria::dev::errors - Rust Enum DBError
pub enum DBError {
+ DBError(Box<dyn Error + Sync + Send>),
UsernameTaken,
EmailTaken,
SecretTaken,
@@ -10,7 +9,7 @@
TrafficPatternNotFound,
NotificationNotFound,
}
Expand description
Error data structure grouping various error subtypes
-Variants§
§DBError(Box<dyn Error + Send + Sync>)
errors that are specific to a database implementation
+Variants§
§DBError(Box<dyn Error + Sync + Send>)
errors that are specific to a database implementation
§UsernameTaken
Username is taken
§EmailTaken
Email is taken
§SecretTaken
Secret is taken
@@ -19,21 +18,29 @@
§CaptchaNotFound
Captcha not found
§TrafficPatternNotFound
Traffic pattern not found
§NotificationNotFound
Notification not found
-Trait Implementations§
§impl Error for DBError
§fn source(&self) -> Option<&(dyn Error + 'static)>
The lower-level source of this error, if any. Read more1.0.0 · source§fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()Auto Trait Implementations§
§impl !RefUnwindSafe for DBError
§impl Send for DBError
§impl Sync for DBError
§impl Unpin for DBError
§impl !UnwindSafe for DBError
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
- T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read moresource§impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
source§impl<T, U> Into<U> for Twhere
- U: From<T>,
Trait Implementations§
§impl Error for DBError
§fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more1.0.0 · Source§fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()Auto Trait Implementations§
§impl Freeze for DBError
§impl !RefUnwindSafe for DBError
§impl Send for DBError
§impl Sync for DBError
§impl Unpin for DBError
§impl !UnwindSafe for DBError
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
+ T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more§impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
source§impl<T> WithSubscriber for T
source§fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>where
- S: Into<Dispatch>,
source§fn with_current_subscriber(self) -> WithDispatch<Self>
\ No newline at end of file
+From<T> for U chooses to do.
+Source§impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts self into a Left variant of Either<Self, Self>
+if into_left is true.
+Converts self into a Right variant of Either<Self, Self>
+otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts self into a Left variant of Either<Self, Self>
+if into_left(&self) returns true.
+Converts self into a Right variant of Either<Self, Self>
+otherwise. Read more§impl<T> WithSubscriber for T
§fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>where
+ S: Into<Dispatch>,
§fn with_current_subscriber(self) -> WithDispatch<Self>
Attaches the current default Subscriber to this type, returning a
+[WithDispatch] wrapper. Read more§impl<T> ErasedDestructor for Twhere
+ T: 'static,
§impl<T> MaybeSendSync for T
\ No newline at end of file
diff --git a/db_sqlx_maria/dev/errors/index.html b/db_sqlx_maria/dev/errors/index.html
index 578cc6b3..d73b81f8 100644
--- a/db_sqlx_maria/dev/errors/index.html
+++ b/db_sqlx_maria/dev/errors/index.html
@@ -1,3 +1,2 @@
-db_sqlx_maria::dev::errors - Rust
- Module db_sqlx_maria::dev::errors
Expand description
represents all the ways a trait can fail using this crate
-Enums§
- Error data structure grouping various error subtypes
Type Aliases§
- Convenience type alias for grouping driver-specific errors
- Generic result data structure
\ No newline at end of file
+db_sqlx_maria::dev::errors - Rust Module errors
Expand description
represents all the ways a trait can fail using this crate
+Enums§
- DBError
- Error data structure grouping various error subtypes
Type Aliases§
- BoxDyn
Error - Convenience type alias for grouping driver-specific errors
- DBResult
- Generic result data structure
\ No newline at end of file
diff --git a/db_sqlx_maria/dev/errors/type.BoxDynError.html b/db_sqlx_maria/dev/errors/type.BoxDynError.html
index 65ca9e8e..a17233d6 100644
--- a/db_sqlx_maria/dev/errors/type.BoxDynError.html
+++ b/db_sqlx_maria/dev/errors/type.BoxDynError.html
@@ -1,3 +1,2 @@
-BoxDynError in db_sqlx_maria::dev::errors - Rust
- Type Alias db_sqlx_maria::dev::errors::BoxDynError
pub type BoxDynError = Box<dyn Error + Send + Sync>;
Expand description
Convenience type alias for grouping driver-specific errors
-Aliased Type§
struct BoxDynError(/* private fields */);
\ No newline at end of file
+BoxDynError in db_sqlx_maria::dev::errors - Rust
\ No newline at end of file
diff --git a/db_sqlx_maria/dev/errors/type.DBResult.html b/db_sqlx_maria/dev/errors/type.DBResult.html
index f768fd6a..9f27af9d 100644
--- a/db_sqlx_maria/dev/errors/type.DBResult.html
+++ b/db_sqlx_maria/dev/errors/type.DBResult.html
@@ -1,8 +1,7 @@
-DBResult in db_sqlx_maria::dev::errors - Rust
-
\ No newline at end of file
diff --git a/db_sqlx_maria/dev/index.html b/db_sqlx_maria/dev/index.html
index 8308e46b..24063e3b 100644
--- a/db_sqlx_maria/dev/index.html
+++ b/db_sqlx_maria/dev/index.html
@@ -1,3 +1,2 @@
-db_sqlx_maria::dev - Rust
- Module db_sqlx_maria::dev
source · Re-exports§
Modules§
- represents all the ways a trait can fail using this crate
- meta operations like migration and connecting to a database
- useful imports for users working with a supported database
- Test utilities
Structs§
- Data required to add notification
- Data representing a captcha
- data required to create new captcha
- Log Proof-of-Work CAPTCHA performance analytics
- Represents Easy captcha configuration
- Level struct that describes threshold-difficulty factor mapping
- type encapsulating username and hashed password of a user
- Represents notification
- Proof-of-Work CAPTCHA performance analytics
- Data required to register a new user
- datastructure representing a user’s secret
- Captcha statistics with time recorded in UNIX epoch formats
- User’s traffic pattern; used in generating a captcha configuration
- data required to update them email of a user
Enums§
- Error data structure grouping various error subtypes
- Represents all the ways a method can fail within SQLx.
- types of credentials used as identifiers during login
Traits§
- Trait to clone MCDatabase
- Create database connection
- Database operations trait(migrations, pool creation and fetching connection from pool)
- Get database connection
- mCaptcha’s database requirements. To implement support for $Database, kindly implement this
-trait.
- database migrations
Type Aliases§
- Convenience type alias for grouping driver-specific errors
- Generic result data structure
Attribute Macros§
\ No newline at end of file
+db_sqlx_maria::dev - Rust Re-exports§
Modules§
- errors
- represents all the ways a trait can fail using this crate
- ops
- meta operations like migration and connecting to a database
- prelude
- useful imports for users working with a supported database
- tests
- Test utilities
Structs§
- AddNotification
- Data required to add notification
- Captcha
- Data representing a captcha
- Create
Captcha - data required to create new captcha
- Create
PerformanceAnalytics - Log Proof-of-Work CAPTCHA performance analytics
- Easy
Captcha - Represents Easy captcha configuration
- Level
- Level struct that describes threshold-difficulty factor mapping
- Name
Hash - type encapsulating username and hashed password of a user
- Notification
- Represents notification
- Performance
Analytics - Proof-of-Work CAPTCHA performance analytics
- Register
- Data required to register a new user
- Secret
- datastructure representing a user’s secret
- Stats
UnixTimestamp - Captcha statistics with time recorded in UNIX epoch formats
- Traffic
Pattern - User’s traffic pattern; used in generating a captcha configuration
- Update
Email - data required to update them email of a user
Enums§
- DBError
- Error data structure grouping various error subtypes
- Error
- Represents all the ways a method can fail within SQLx.
- Login
- types of credentials used as identifiers during login
Traits§
- CloneSP
Database - Trait to clone MCDatabase
- Connect
- Create database connection
- DBOps
- Database operations trait(migrations, pool creation and fetching connection from pool)
- GetConnection
- Get database connection
- MCDatabase
- mCaptcha’s database requirements. To implement support for $Database, kindly implement this
+trait.
- Migrate
- database migrations
Type Aliases§
- BoxDyn
Error - Convenience type alias for grouping driver-specific errors
- DBResult
- Generic result data structure
Attribute Macros§
\ No newline at end of file
diff --git a/db_sqlx_maria/dev/ops/index.html b/db_sqlx_maria/dev/ops/index.html
index 5d1c33ad..caf43493 100644
--- a/db_sqlx_maria/dev/ops/index.html
+++ b/db_sqlx_maria/dev/ops/index.html
@@ -1,3 +1,2 @@
-db_sqlx_maria::dev::ops - Rust
- Module db_sqlx_maria::dev::ops
Expand description
meta operations like migration and connecting to a database
-Traits§
- Create database connection
- Database operations trait(migrations, pool creation and fetching connection from pool)
- Get database connection
- database migrations
\ No newline at end of file
+db_sqlx_maria::dev::ops - Rust Module ops
Expand description
meta operations like migration and connecting to a database
+Traits§
- Connect
- Create database connection
- DBOps
- Database operations trait(migrations, pool creation and fetching connection from pool)
- GetConnection
- Get database connection
- Migrate
- database migrations
\ No newline at end of file
diff --git a/db_sqlx_maria/dev/ops/trait.Connect.html b/db_sqlx_maria/dev/ops/trait.Connect.html
index da51209c..a9e16f50 100644
--- a/db_sqlx_maria/dev/ops/trait.Connect.html
+++ b/db_sqlx_maria/dev/ops/trait.Connect.html
@@ -1,17 +1,16 @@
-Connect in db_sqlx_maria::dev::ops - Rust
- Trait db_sqlx_maria::dev::ops::Connect
pub trait Connect {
+Connect in db_sqlx_maria::dev::ops - Rust Trait Connect
pub trait Connect {
type Pool: MCDatabase;
// Required method
fn connect<'async_trait>(
- self
- ) -> Pin<Box<dyn Future<Output = Result<Self::Pool, DBError>> + Send + 'async_trait>>
+ self,
+ ) -> Pin<Box<dyn Future<Output = Result<Self::Pool, DBError>> + Send + 'async_trait>>
where Self: 'async_trait;
}
Expand description
Create database connection
Required Associated Types§
type Pool: MCDatabase
database specific pool-type
Required Methods§
fn connect<'async_trait>(
- self
-) -> Pin<Box<dyn Future<Output = Result<Self::Pool, DBError>> + Send + 'async_trait>>where
+ self,
+) -> Pin<Box<dyn Future<Output = Result<Self::Pool, DBError>> + Send + 'async_trait>>where
Self: 'async_trait,database specific error-type
create connection pool
-Implementors§
\ No newline at end of file
+
Implementors§
pub trait DBOps: GetConnection + Migrate { }Database operations trait(migrations, pool creation and fetching connection from pool)
+pub trait DBOps: GetConnection + Migrate { }Database operations trait(migrations, pool creation and fetching connection from pool)
pub trait GetConnection {
+GetConnection in db_sqlx_maria::dev::ops - Rust Trait GetConnection
pub trait GetConnection {
type Conn;
// Required method
fn get_conn<'life0, 'async_trait>(
- &'life0 self
- ) -> Pin<Box<dyn Future<Output = Result<Self::Conn, DBError>> + Send + 'async_trait>>
+ &'life0 self,
+ ) -> Pin<Box<dyn Future<Output = Result<Self::Conn, DBError>> + Send + 'async_trait>>
where 'life0: 'async_trait,
Self: 'async_trait;
}
Expand description
Get database connection
Required Associated Types§
type Conn
database connection type
Required Methods§
fn get_conn<'life0, 'async_trait>(
- &'life0 self
-) -> Pin<Box<dyn Future<Output = Result<Self::Conn, DBError>> + Send + 'async_trait>>where
+ &'life0 self,
+) -> Pin<Box<dyn Future<Output = Result<Self::Conn, DBError>> + Send + 'async_trait>>where
'life0: 'async_trait,
Self: 'async_trait,database specific error-type
get connection from connection pool
diff --git a/db_sqlx_maria/dev/ops/trait.Migrate.html b/db_sqlx_maria/dev/ops/trait.Migrate.html
index 5a71e9f8..b948181e 100644
--- a/db_sqlx_maria/dev/ops/trait.Migrate.html
+++ b/db_sqlx_maria/dev/ops/trait.Migrate.html
@@ -1,16 +1,15 @@
-Migrate in db_sqlx_maria::dev::ops - Rust
- Trait db_sqlx_maria::dev::ops::Migrate
pub trait Migrate: MCDatabase {
+Migrate in db_sqlx_maria::dev::ops - Rust Trait Migrate
pub trait Migrate: MCDatabase {
// Required method
fn migrate<'life0, 'async_trait>(
- &'life0 self
- ) -> Pin<Box<dyn Future<Output = Result<(), DBError>> + Send + 'async_trait>>
+ &'life0 self,
+ ) -> Pin<Box<dyn Future<Output = Result<(), DBError>> + Send + 'async_trait>>
where 'life0: 'async_trait,
Self: 'async_trait;
}
Expand description
database migrations
Required Methods§
fn migrate<'life0, 'async_trait>(
- &'life0 self
-) -> Pin<Box<dyn Future<Output = Result<(), DBError>> + Send + 'async_trait>>where
+ &'life0 self,
+) -> Pin<Box<dyn Future<Output = Result<(), DBError>> + Send + 'async_trait>>where
'life0: 'async_trait,
Self: 'async_trait,database specific error-type
run migrations
-Implementors§
\ No newline at end of file
+
Implementors§
\ No newline at end of file
diff --git a/db_sqlx_maria/dev/prelude/dev/attr.async_trait.html b/db_sqlx_maria/dev/prelude/dev/attr.async_trait.html
index 9a70dc90..6881d195 100644
--- a/db_sqlx_maria/dev/prelude/dev/attr.async_trait.html
+++ b/db_sqlx_maria/dev/prelude/dev/attr.async_trait.html
@@ -1,2 +1 @@
-async_trait in db_sqlx_maria::dev::prelude::dev - Rust
- Attribute Macro db_sqlx_maria::dev::prelude::dev::async_trait
#[async_trait]
\ No newline at end of file
+async_trait in db_sqlx_maria::dev::prelude::dev - Rust #[async_trait]
\ No newline at end of file
diff --git a/db_sqlx_maria/dev/prelude/dev/enum.DBError.html b/db_sqlx_maria/dev/prelude/dev/enum.DBError.html
index 103e7de5..a736cc65 100644
--- a/db_sqlx_maria/dev/prelude/dev/enum.DBError.html
+++ b/db_sqlx_maria/dev/prelude/dev/enum.DBError.html
@@ -1,6 +1,5 @@
-DBError in db_sqlx_maria::dev::prelude::dev - Rust
- Enum db_sqlx_maria::dev::prelude::dev::DBError
pub enum DBError {
- DBError(Box<dyn Error + Send + Sync>),
+DBError in db_sqlx_maria::dev::prelude::dev - Rust Enum DBError
pub enum DBError {
+ DBError(Box<dyn Error + Sync + Send>),
UsernameTaken,
EmailTaken,
SecretTaken,
@@ -10,7 +9,7 @@
TrafficPatternNotFound,
NotificationNotFound,
}
Expand description
Error data structure grouping various error subtypes
-Variants§
§DBError(Box<dyn Error + Send + Sync>)
errors that are specific to a database implementation
+Variants§
§DBError(Box<dyn Error + Sync + Send>)
errors that are specific to a database implementation
§UsernameTaken
Username is taken
§EmailTaken
Email is taken
§SecretTaken
Secret is taken
@@ -19,21 +18,29 @@
§CaptchaNotFound
Captcha not found
§TrafficPatternNotFound
Traffic pattern not found
§NotificationNotFound
Notification not found
-Trait Implementations§
§impl Error for DBError
§fn source(&self) -> Option<&(dyn Error + 'static)>
The lower-level source of this error, if any. Read more1.0.0 · source§fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()Auto Trait Implementations§
§impl !RefUnwindSafe for DBError
§impl Send for DBError
§impl Sync for DBError
§impl Unpin for DBError
§impl !UnwindSafe for DBError
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
- T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read moresource§impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
source§impl<T, U> Into<U> for Twhere
- U: From<T>,
Trait Implementations§
§impl Error for DBError
§fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more1.0.0 · Source§fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()Auto Trait Implementations§
§impl Freeze for DBError
§impl !RefUnwindSafe for DBError
§impl Send for DBError
§impl Sync for DBError
§impl Unpin for DBError
§impl !UnwindSafe for DBError
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
+ T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more§impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
source§impl<T> WithSubscriber for T
source§fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>where
- S: Into<Dispatch>,
source§fn with_current_subscriber(self) -> WithDispatch<Self>
\ No newline at end of file
+From<T> for U chooses to do.
+Source§impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts self into a Left variant of Either<Self, Self>
+if into_left is true.
+Converts self into a Right variant of Either<Self, Self>
+otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts self into a Left variant of Either<Self, Self>
+if into_left(&self) returns true.
+Converts self into a Right variant of Either<Self, Self>
+otherwise. Read more§impl<T> WithSubscriber for T
§fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>where
+ S: Into<Dispatch>,
§fn with_current_subscriber(self) -> WithDispatch<Self>
Attaches the current default Subscriber to this type, returning a
+[WithDispatch] wrapper. Read more§impl<T> ErasedDestructor for Twhere
+ T: 'static,
§impl<T> MaybeSendSync for T
\ No newline at end of file
diff --git a/db_sqlx_maria/dev/prelude/dev/enum.Login.html b/db_sqlx_maria/dev/prelude/dev/enum.Login.html
index 1b7e42eb..ce81bfed 100644
--- a/db_sqlx_maria/dev/prelude/dev/enum.Login.html
+++ b/db_sqlx_maria/dev/prelude/dev/enum.Login.html
@@ -1,36 +1,43 @@
-Login in db_sqlx_maria::dev::prelude::dev - Rust
- Enum db_sqlx_maria::dev::prelude::dev::Login
pub enum Login<'a> {
- Username(&'a str),
- Email(&'a str),
+Login in db_sqlx_maria::dev::prelude::dev - Rust Enum Login
pub enum Login<'a> {
+ Username(&'a str),
+ Email(&'a str),
}
Expand description
types of credentials used as identifiers during login
-Variants§
Trait Implementations§
§impl<'de, 'a> Deserialize<'de> for Login<'a>where
- 'de: 'a,
§fn deserialize<__D>(
- __deserializer: __D
-) -> Result<Login<'a>, <__D as Deserializer<'de>>::Error>where
- __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more§impl<'a> PartialEq for Login<'a>
Variants§
Trait Implementations§
§impl<'de, 'a> Deserialize<'de> for Login<'a>where
+ 'de: 'a,
§fn deserialize<__D>(
+ __deserializer: __D,
+) -> Result<Login<'a>, <__D as Deserializer<'de>>::Error>where
+ __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more§impl<'a> Serialize for Login<'a>
§fn serialize<__S>(
&self,
- __serializer: __S
-) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
- __S: Serializer,
Serialize this value into the given Serde serializer. Read more§impl<'a> StructuralPartialEq for Login<'a>
Auto Trait Implementations§
§impl<'a> RefUnwindSafe for Login<'a>
§impl<'a> Send for Login<'a>
§impl<'a> Sync for Login<'a>
§impl<'a> Unpin for Login<'a>
§impl<'a> UnwindSafe for Login<'a>
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
- T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read moresource§impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
source§impl<T, U> Into<U> for Twhere
- U: From<T>,
source§fn into(self) -> U
Calls U::from(self).
+ __serializer: __S,
+) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
+ __S: Serializer,Serialize this value into the given Serde serializer. Read more§impl<'a> StructuralPartialEq for Login<'a>
Auto Trait Implementations§
§impl<'a> Freeze for Login<'a>
§impl<'a> RefUnwindSafe for Login<'a>
§impl<'a> Send for Login<'a>
§impl<'a> Sync for Login<'a>
§impl<'a> Unpin for Login<'a>
§impl<'a> UnwindSafe for Login<'a>
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
+ T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read moreSource§impl<T> CloneToUninit for Twhere
+ T: Clone,
§impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
source§impl<T> WithSubscriber for T
source§fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>where
- S: Into<Dispatch>,
source§fn with_current_subscriber(self) -> WithDispatch<Self>
source§impl<T> DeserializeOwned for Twhere
- T: for<'de> Deserialize<'de>,
\ No newline at end of file
+From<T> for U chooses to do.
+Source§impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts self into a Left variant of Either<Self, Self>
+if into_left is true.
+Converts self into a Right variant of Either<Self, Self>
+otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts self into a Left variant of Either<Self, Self>
+if into_left(&self) returns true.
+Converts self into a Right variant of Either<Self, Self>
+otherwise. Read more§impl<T> WithSubscriber for T
§fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>where
+ S: Into<Dispatch>,
§fn with_current_subscriber(self) -> WithDispatch<Self>
Attaches the current default Subscriber to this type, returning a
+[WithDispatch] wrapper. Read moreSource§impl<T> DeserializeOwned for Twhere
+ T: for<'de> Deserialize<'de>,
§impl<T> ErasedDestructor for Twhere
+ T: 'static,
§impl<T> MaybeSendSync for T
\ No newline at end of file
diff --git a/db_sqlx_maria/dev/prelude/dev/index.html b/db_sqlx_maria/dev/prelude/dev/index.html
index c8126256..b7d8085e 100644
--- a/db_sqlx_maria/dev/prelude/dev/index.html
+++ b/db_sqlx_maria/dev/prelude/dev/index.html
@@ -1,4 +1,3 @@
-db_sqlx_maria::dev::prelude::dev - Rust
- Module db_sqlx_maria::dev::prelude::dev
Expand description
useful imports for supporting a new database
-Structs§
- Data required to add notification
- Data representing a captcha
- data required to create new captcha
- Log Proof-of-Work CAPTCHA performance analytics
- Represents Easy captcha configuration
- Level struct that describes threshold-difficulty factor mapping
- type encapsulating username and hashed password of a user
- Represents notification
- Proof-of-Work CAPTCHA performance analytics
- Data required to register a new user
- datastructure representing a user’s secret
- Captcha statistics with time recorded in UNIX epoch formats
- User’s traffic pattern; used in generating a captcha configuration
- data required to update them email of a user
Enums§
- Error data structure grouping various error subtypes
- types of credentials used as identifiers during login
Traits§
- Trait to clone MCDatabase
- Create database connection
- Database operations trait(migrations, pool creation and fetching connection from pool)
- Get database connection
- mCaptcha’s database requirements. To implement support for $Database, kindly implement this
-trait.
- database migrations
Type Aliases§
- Convenience type alias for grouping driver-specific errors
- Generic result data structure
Attribute Macros§
\ No newline at end of file
+db_sqlx_maria::dev::prelude::dev - Rust Module dev
Expand description
useful imports for supporting a new database
+Structs§
- AddNotification
- Data required to add notification
- Captcha
- Data representing a captcha
- Create
Captcha - data required to create new captcha
- Create
PerformanceAnalytics - Log Proof-of-Work CAPTCHA performance analytics
- Easy
Captcha - Represents Easy captcha configuration
- Level
- Level struct that describes threshold-difficulty factor mapping
- Name
Hash - type encapsulating username and hashed password of a user
- Notification
- Represents notification
- Performance
Analytics - Proof-of-Work CAPTCHA performance analytics
- Register
- Data required to register a new user
- Secret
- datastructure representing a user’s secret
- Stats
UnixTimestamp - Captcha statistics with time recorded in UNIX epoch formats
- Traffic
Pattern - User’s traffic pattern; used in generating a captcha configuration
- Update
Email - data required to update them email of a user
Enums§
- DBError
- Error data structure grouping various error subtypes
- Login
- types of credentials used as identifiers during login
Traits§
- CloneSP
Database - Trait to clone MCDatabase
- Connect
- Create database connection
- DBOps
- Database operations trait(migrations, pool creation and fetching connection from pool)
- GetConnection
- Get database connection
- MCDatabase
- mCaptcha’s database requirements. To implement support for $Database, kindly implement this
+trait.
- Migrate
- database migrations
Type Aliases§
- BoxDyn
Error - Convenience type alias for grouping driver-specific errors
- DBResult
- Generic result data structure
Attribute Macros§
\ No newline at end of file
diff --git a/db_sqlx_maria/dev/prelude/dev/struct.AddNotification.html b/db_sqlx_maria/dev/prelude/dev/struct.AddNotification.html
index 01be3681..fe725b18 100644
--- a/db_sqlx_maria/dev/prelude/dev/struct.AddNotification.html
+++ b/db_sqlx_maria/dev/prelude/dev/struct.AddNotification.html
@@ -1,40 +1,47 @@
-AddNotification in db_sqlx_maria::dev::prelude::dev - Rust
- Struct db_sqlx_maria::dev::prelude::dev::AddNotification
pub struct AddNotification<'a> {
- pub to: &'a str,
- pub from: &'a str,
- pub heading: &'a str,
- pub message: &'a str,
+AddNotification in db_sqlx_maria::dev::prelude::dev - Rust Struct AddNotification
pub struct AddNotification<'a> {
+ pub to: &'a str,
+ pub from: &'a str,
+ pub heading: &'a str,
+ pub message: &'a str,
}
Expand description
Data required to add notification
-Fields§
§to: &'a strwho is the notification addressed to?
-§from: &'a strnotification sender
-§heading: &'a strheading of the notification
-§message: &'a strmessage of the notification
-Trait Implementations§
§impl<'a> Clone for AddNotification<'a>
§fn clone(&self) -> AddNotification<'a>
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source. Read more§impl<'a> Debug for AddNotification<'a>
§impl<'a> Default for AddNotification<'a>
§fn default() -> AddNotification<'a>
Returns the “default value” for a type. Read more§impl<'de, 'a> Deserialize<'de> for AddNotification<'a>where
- 'de: 'a,
§fn deserialize<__D>(
- __deserializer: __D
-) -> Result<AddNotification<'a>, <__D as Deserializer<'de>>::Error>where
- __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more§impl<'a> PartialEq for AddNotification<'a>
§fn eq(&self, other: &AddNotification<'a>) -> bool
This method tests for self and other values to be equal, and is used
-by ==.§impl<'a> Serialize for AddNotification<'a>
Fields§
§to: &'a strwho is the notification addressed to?
+§from: &'a strnotification sender
+§heading: &'a strheading of the notification
+§message: &'a strmessage of the notification
+Trait Implementations§
§impl<'a> Clone for AddNotification<'a>
§fn clone(&self) -> AddNotification<'a>
Returns a duplicate of the value. Read more1.0.0 · Source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source. Read more§impl<'a> Debug for AddNotification<'a>
§impl<'a> Default for AddNotification<'a>
§fn default() -> AddNotification<'a>
Returns the “default value” for a type. Read more§impl<'de, 'a> Deserialize<'de> for AddNotification<'a>where
+ 'de: 'a,
§fn deserialize<__D>(
+ __deserializer: __D,
+) -> Result<AddNotification<'a>, <__D as Deserializer<'de>>::Error>where
+ __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more§impl<'a> PartialEq for AddNotification<'a>
§impl<'a> Serialize for AddNotification<'a>
§fn serialize<__S>(
&self,
- __serializer: __S
-) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
- __S: Serializer,
Serialize this value into the given Serde serializer. Read more§impl<'a> StructuralPartialEq for AddNotification<'a>
Auto Trait Implementations§
§impl<'a> RefUnwindSafe for AddNotification<'a>
§impl<'a> Send for AddNotification<'a>
§impl<'a> Sync for AddNotification<'a>
§impl<'a> Unpin for AddNotification<'a>
§impl<'a> UnwindSafe for AddNotification<'a>
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
- T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read moresource§impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
source§impl<T, U> Into<U> for Twhere
- U: From<T>,
source§fn into(self) -> U
Calls U::from(self).
+ __serializer: __S,
+) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
+ __S: Serializer,Serialize this value into the given Serde serializer. Read more§impl<'a> StructuralPartialEq for AddNotification<'a>
Auto Trait Implementations§
§impl<'a> Freeze for AddNotification<'a>
§impl<'a> RefUnwindSafe for AddNotification<'a>
§impl<'a> Send for AddNotification<'a>
§impl<'a> Sync for AddNotification<'a>
§impl<'a> Unpin for AddNotification<'a>
§impl<'a> UnwindSafe for AddNotification<'a>
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
+ T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read moreSource§impl<T> CloneToUninit for Twhere
+ T: Clone,
§impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
source§impl<T> WithSubscriber for T
source§fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>where
- S: Into<Dispatch>,
source§fn with_current_subscriber(self) -> WithDispatch<Self>
source§impl<T> DeserializeOwned for Twhere
- T: for<'de> Deserialize<'de>,
\ No newline at end of file
+From<T> for U chooses to do.
+Source§impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts self into a Left variant of Either<Self, Self>
+if into_left is true.
+Converts self into a Right variant of Either<Self, Self>
+otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts self into a Left variant of Either<Self, Self>
+if into_left(&self) returns true.
+Converts self into a Right variant of Either<Self, Self>
+otherwise. Read more§impl<T> WithSubscriber for T
§fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>where
+ S: Into<Dispatch>,
§fn with_current_subscriber(self) -> WithDispatch<Self>
Attaches the current default Subscriber to this type, returning a
+[WithDispatch] wrapper. Read moreSource§impl<T> DeserializeOwned for Twhere
+ T: for<'de> Deserialize<'de>,
§impl<T> ErasedDestructor for Twhere
+ T: 'static,
§impl<T> MaybeSendSync for T
\ No newline at end of file
diff --git a/db_sqlx_maria/dev/prelude/dev/struct.Captcha.html b/db_sqlx_maria/dev/prelude/dev/struct.Captcha.html
index 7d91b98f..a4642a4a 100644
--- a/db_sqlx_maria/dev/prelude/dev/struct.Captcha.html
+++ b/db_sqlx_maria/dev/prelude/dev/struct.Captcha.html
@@ -1,39 +1,46 @@
-Captcha in db_sqlx_maria::dev::prelude::dev - Rust
- Struct db_sqlx_maria::dev::prelude::dev::Captcha
pub struct Captcha {
- pub config_id: i32,
- pub duration: i32,
- pub description: String,
- pub key: String,
+Captcha in db_sqlx_maria::dev::prelude::dev - Rust Struct Captcha
pub struct Captcha {
+ pub config_id: i32,
+ pub duration: i32,
+ pub description: String,
+ pub key: String,
}
Expand description
Data representing a captcha
-Fields§
§config_id: i32Database assigned ID
-§duration: i32cool down duration
-§description: Stringdescription of the captcha
-§key: Stringsecret key of the captcha
-Trait Implementations§
§impl<'de> Deserialize<'de> for Captcha
§fn deserialize<__D>(
- __deserializer: __D
-) -> Result<Captcha, <__D as Deserializer<'de>>::Error>where
- __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moreFields§
§config_id: i32Database assigned ID
+§duration: i32cool down duration
+§description: Stringdescription of the captcha
+§key: Stringsecret key of the captcha
+Trait Implementations§
§impl<'de> Deserialize<'de> for Captcha
§fn deserialize<__D>(
+ __deserializer: __D,
+) -> Result<Captcha, <__D as Deserializer<'de>>::Error>where
+ __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more§impl Serialize for Captcha
§fn serialize<__S>(
&self,
- __serializer: __S
-) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
- __S: Serializer,
Serialize this value into the given Serde serializer. Read more§impl StructuralPartialEq for Captcha
Auto Trait Implementations§
§impl RefUnwindSafe for Captcha
§impl Send for Captcha
§impl Sync for Captcha
§impl Unpin for Captcha
§impl UnwindSafe for Captcha
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
- T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read moresource§impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
source§impl<T, U> Into<U> for Twhere
- U: From<T>,
source§fn into(self) -> U
Calls U::from(self).
+ __serializer: __S,
+) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
+ __S: Serializer,Serialize this value into the given Serde serializer. Read more§impl StructuralPartialEq for Captcha
Auto Trait Implementations§
§impl Freeze for Captcha
§impl RefUnwindSafe for Captcha
§impl Send for Captcha
§impl Sync for Captcha
§impl Unpin for Captcha
§impl UnwindSafe for Captcha
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
+ T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read moreSource§impl<T> CloneToUninit for Twhere
+ T: Clone,
§impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
source§impl<T> WithSubscriber for T
source§fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>where
- S: Into<Dispatch>,
source§fn with_current_subscriber(self) -> WithDispatch<Self>
source§impl<T> DeserializeOwned for Twhere
- T: for<'de> Deserialize<'de>,
\ No newline at end of file
+From<T> for U chooses to do.
+Source§impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts self into a Left variant of Either<Self, Self>
+if into_left is true.
+Converts self into a Right variant of Either<Self, Self>
+otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts self into a Left variant of Either<Self, Self>
+if into_left(&self) returns true.
+Converts self into a Right variant of Either<Self, Self>
+otherwise. Read more§impl<T> WithSubscriber for T
§fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>where
+ S: Into<Dispatch>,
§fn with_current_subscriber(self) -> WithDispatch<Self>
Attaches the current default Subscriber to this type, returning a
+[WithDispatch] wrapper. Read moreSource§impl<T> DeserializeOwned for Twhere
+ T: for<'de> Deserialize<'de>,
§impl<T> ErasedDestructor for Twhere
+ T: 'static,
§impl<T> MaybeSendSync for T
pub struct CreateCaptcha<'a> {
- pub duration: i32,
- pub description: &'a str,
- pub key: &'a str,
+CreateCaptcha in db_sqlx_maria::dev::prelude::dev - Rust Struct CreateCaptcha
pub struct CreateCaptcha<'a> {
+ pub duration: i32,
+ pub description: &'a str,
+ pub key: &'a str,
}
Expand description
data required to create new captcha
-Fields§
§duration: i32cool down duration
-§description: &'a strdescription of the captcha
-§key: &'a strsecret key of the captcha
-Trait Implementations§
§impl<'a> Clone for CreateCaptcha<'a>
§fn clone(&self) -> CreateCaptcha<'a>
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source. Read more§impl<'a> Debug for CreateCaptcha<'a>
§impl<'a> Default for CreateCaptcha<'a>
§fn default() -> CreateCaptcha<'a>
Returns the “default value” for a type. Read more§impl<'de, 'a> Deserialize<'de> for CreateCaptcha<'a>where
- 'de: 'a,
§fn deserialize<__D>(
- __deserializer: __D
-) -> Result<CreateCaptcha<'a>, <__D as Deserializer<'de>>::Error>where
- __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more§impl<'a> PartialEq for CreateCaptcha<'a>
§fn eq(&self, other: &CreateCaptcha<'a>) -> bool
This method tests for self and other values to be equal, and is used
-by ==.§impl<'a> Serialize for CreateCaptcha<'a>
Fields§
§duration: i32cool down duration
+§description: &'a strdescription of the captcha
+§key: &'a strsecret key of the captcha
+Trait Implementations§
§impl<'a> Clone for CreateCaptcha<'a>
§fn clone(&self) -> CreateCaptcha<'a>
Returns a duplicate of the value. Read more1.0.0 · Source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source. Read more§impl<'a> Debug for CreateCaptcha<'a>
§impl<'a> Default for CreateCaptcha<'a>
§fn default() -> CreateCaptcha<'a>
Returns the “default value” for a type. Read more§impl<'de, 'a> Deserialize<'de> for CreateCaptcha<'a>where
+ 'de: 'a,
§fn deserialize<__D>(
+ __deserializer: __D,
+) -> Result<CreateCaptcha<'a>, <__D as Deserializer<'de>>::Error>where
+ __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more§impl<'a> PartialEq for CreateCaptcha<'a>
§impl<'a> Serialize for CreateCaptcha<'a>
§fn serialize<__S>(
&self,
- __serializer: __S
-) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
- __S: Serializer,
Serialize this value into the given Serde serializer. Read more§impl<'a> StructuralPartialEq for CreateCaptcha<'a>
Auto Trait Implementations§
§impl<'a> RefUnwindSafe for CreateCaptcha<'a>
§impl<'a> Send for CreateCaptcha<'a>
§impl<'a> Sync for CreateCaptcha<'a>
§impl<'a> Unpin for CreateCaptcha<'a>
§impl<'a> UnwindSafe for CreateCaptcha<'a>
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
- T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read moresource§impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
source§impl<T, U> Into<U> for Twhere
- U: From<T>,
source§fn into(self) -> U
Calls U::from(self).
+ __serializer: __S,
+) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
+ __S: Serializer,Serialize this value into the given Serde serializer. Read more§impl<'a> StructuralPartialEq for CreateCaptcha<'a>
Auto Trait Implementations§
§impl<'a> Freeze for CreateCaptcha<'a>
§impl<'a> RefUnwindSafe for CreateCaptcha<'a>
§impl<'a> Send for CreateCaptcha<'a>
§impl<'a> Sync for CreateCaptcha<'a>
§impl<'a> Unpin for CreateCaptcha<'a>
§impl<'a> UnwindSafe for CreateCaptcha<'a>
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
+ T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read moreSource§impl<T> CloneToUninit for Twhere
+ T: Clone,
§impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
source§impl<T> WithSubscriber for T
source§fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>where
- S: Into<Dispatch>,
source§fn with_current_subscriber(self) -> WithDispatch<Self>
source§impl<T> DeserializeOwned for Twhere
- T: for<'de> Deserialize<'de>,
\ No newline at end of file
+From<T> for U chooses to do.
+Source§impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts self into a Left variant of Either<Self, Self>
+if into_left is true.
+Converts self into a Right variant of Either<Self, Self>
+otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts self into a Left variant of Either<Self, Self>
+if into_left(&self) returns true.
+Converts self into a Right variant of Either<Self, Self>
+otherwise. Read more§impl<T> WithSubscriber for T
§fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>where
+ S: Into<Dispatch>,
§fn with_current_subscriber(self) -> WithDispatch<Self>
Attaches the current default Subscriber to this type, returning a
+[WithDispatch] wrapper. Read moreSource§impl<T> DeserializeOwned for Twhere
+ T: for<'de> Deserialize<'de>,
§impl<T> ErasedDestructor for Twhere
+ T: 'static,
§impl<T> MaybeSendSync for T
pub struct CreatePerformanceAnalytics {
- pub time: u32,
- pub difficulty_factor: u32,
- pub worker_type: String,
+CreatePerformanceAnalytics in db_sqlx_maria::dev::prelude::dev - Rust Struct CreatePerformanceAnalytics
pub struct CreatePerformanceAnalytics {
+ pub time: u32,
+ pub difficulty_factor: u32,
+ pub worker_type: String,
}
Expand description
Log Proof-of-Work CAPTCHA performance analytics
-Fields§
§time: u32time taken to generate proof
-§difficulty_factor: u32difficulty factor for which the proof was generated
-§worker_type: Stringworker/client type: wasm, javascript, python, etc.
-Trait Implementations§
§impl Clone for CreatePerformanceAnalytics
§fn clone(&self) -> CreatePerformanceAnalytics
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source. Read more§impl Debug for CreatePerformanceAnalytics
§impl Default for CreatePerformanceAnalytics
§fn default() -> CreatePerformanceAnalytics
Returns the “default value” for a type. Read more§impl<'de> Deserialize<'de> for CreatePerformanceAnalytics
§fn deserialize<__D>(
- __deserializer: __D
-) -> Result<CreatePerformanceAnalytics, <__D as Deserializer<'de>>::Error>where
- __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more§impl PartialEq for CreatePerformanceAnalytics
§fn eq(&self, other: &CreatePerformanceAnalytics) -> bool
This method tests for self and other values to be equal, and is used
-by ==.§impl Serialize for CreatePerformanceAnalytics
Fields§
§time: u32time taken to generate proof
+§difficulty_factor: u32difficulty factor for which the proof was generated
+§worker_type: Stringworker/client type: wasm, javascript, python, etc.
+Trait Implementations§
§impl Clone for CreatePerformanceAnalytics
§fn clone(&self) -> CreatePerformanceAnalytics
Returns a duplicate of the value. Read more1.0.0 · Source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source. Read more§impl Debug for CreatePerformanceAnalytics
§impl Default for CreatePerformanceAnalytics
§fn default() -> CreatePerformanceAnalytics
Returns the “default value” for a type. Read more§impl<'de> Deserialize<'de> for CreatePerformanceAnalytics
§fn deserialize<__D>(
+ __deserializer: __D,
+) -> Result<CreatePerformanceAnalytics, <__D as Deserializer<'de>>::Error>where
+ __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more§impl PartialEq for CreatePerformanceAnalytics
§impl Serialize for CreatePerformanceAnalytics
§fn serialize<__S>(
&self,
- __serializer: __S
-) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
- __S: Serializer,
Serialize this value into the given Serde serializer. Read more§impl StructuralPartialEq for CreatePerformanceAnalytics
Auto Trait Implementations§
§impl RefUnwindSafe for CreatePerformanceAnalytics
§impl Send for CreatePerformanceAnalytics
§impl Sync for CreatePerformanceAnalytics
§impl Unpin for CreatePerformanceAnalytics
§impl UnwindSafe for CreatePerformanceAnalytics
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
- T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read moresource§impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
source§impl<T, U> Into<U> for Twhere
- U: From<T>,
source§fn into(self) -> U
Calls U::from(self).
+ __serializer: __S,
+) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
+ __S: Serializer,Serialize this value into the given Serde serializer. Read more§impl StructuralPartialEq for CreatePerformanceAnalytics
Auto Trait Implementations§
§impl Freeze for CreatePerformanceAnalytics
§impl RefUnwindSafe for CreatePerformanceAnalytics
§impl Send for CreatePerformanceAnalytics
§impl Sync for CreatePerformanceAnalytics
§impl Unpin for CreatePerformanceAnalytics
§impl UnwindSafe for CreatePerformanceAnalytics
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
+ T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read moreSource§impl<T> CloneToUninit for Twhere
+ T: Clone,
§impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
source§impl<T> WithSubscriber for T
source§fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>where
- S: Into<Dispatch>,
source§fn with_current_subscriber(self) -> WithDispatch<Self>
source§impl<T> DeserializeOwned for Twhere
- T: for<'de> Deserialize<'de>,
\ No newline at end of file
+From<T> for U chooses to do.
+Source§impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts self into a Left variant of Either<Self, Self>
+if into_left is true.
+Converts self into a Right variant of Either<Self, Self>
+otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts self into a Left variant of Either<Self, Self>
+if into_left(&self) returns true.
+Converts self into a Right variant of Either<Self, Self>
+otherwise. Read more§impl<T> WithSubscriber for T
§fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>where
+ S: Into<Dispatch>,
§fn with_current_subscriber(self) -> WithDispatch<Self>
Attaches the current default Subscriber to this type, returning a
+[WithDispatch] wrapper. Read moreSource§impl<T> DeserializeOwned for Twhere
+ T: for<'de> Deserialize<'de>,
§impl<T> ErasedDestructor for Twhere
+ T: 'static,
§impl<T> MaybeSendSync for T
pub struct EasyCaptcha {
+EasyCaptcha in db_sqlx_maria::dev::prelude::dev - Rust Struct EasyCaptcha
pub struct EasyCaptcha {
pub traffic_pattern: TrafficPattern,
- pub key: String,
- pub description: String,
- pub username: String,
+ pub key: String,
+ pub description: String,
+ pub username: String,
}
Expand description
Represents Easy captcha configuration
Fields§
§traffic_pattern: TrafficPatterntraffic pattern of easy captcha
-§key: Stringcaptcha key/sitekey
-§description: Stringcaptcha description
-§username: StringOwner of the captcha configuration
-Trait Implementations§
§impl Clone for EasyCaptcha
§fn clone(&self) -> EasyCaptcha
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source. Read more§impl Debug for EasyCaptcha
§impl Default for EasyCaptcha
§fn default() -> EasyCaptcha
Returns the “default value” for a type. Read more§impl<'de> Deserialize<'de> for EasyCaptcha
§fn deserialize<__D>(
- __deserializer: __D
-) -> Result<EasyCaptcha, <__D as Deserializer<'de>>::Error>where
- __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more§impl PartialEq for EasyCaptcha
§fn eq(&self, other: &EasyCaptcha) -> bool
This method tests for self and other values to be equal, and is used
-by ==.§impl Serialize for EasyCaptcha
§key: Stringcaptcha key/sitekey
+§description: Stringcaptcha description
+§username: StringOwner of the captcha configuration
+Trait Implementations§
§impl Clone for EasyCaptcha
§fn clone(&self) -> EasyCaptcha
Returns a duplicate of the value. Read more1.0.0 · Source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source. Read more§impl Debug for EasyCaptcha
§impl Default for EasyCaptcha
§fn default() -> EasyCaptcha
Returns the “default value” for a type. Read more§impl<'de> Deserialize<'de> for EasyCaptcha
§fn deserialize<__D>(
+ __deserializer: __D,
+) -> Result<EasyCaptcha, <__D as Deserializer<'de>>::Error>where
+ __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more§impl PartialEq for EasyCaptcha
§impl Serialize for EasyCaptcha
§fn serialize<__S>(
&self,
- __serializer: __S
-) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
- __S: Serializer,
Serialize this value into the given Serde serializer. Read more§impl StructuralPartialEq for EasyCaptcha
Auto Trait Implementations§
§impl RefUnwindSafe for EasyCaptcha
§impl Send for EasyCaptcha
§impl Sync for EasyCaptcha
§impl Unpin for EasyCaptcha
§impl UnwindSafe for EasyCaptcha
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
- T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read moresource§impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
source§impl<T, U> Into<U> for Twhere
- U: From<T>,
source§fn into(self) -> U
Calls U::from(self).
+ __serializer: __S,
+) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
+ __S: Serializer,Serialize this value into the given Serde serializer. Read more§impl StructuralPartialEq for EasyCaptcha
Auto Trait Implementations§
§impl Freeze for EasyCaptcha
§impl RefUnwindSafe for EasyCaptcha
§impl Send for EasyCaptcha
§impl Sync for EasyCaptcha
§impl Unpin for EasyCaptcha
§impl UnwindSafe for EasyCaptcha
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
+ T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read moreSource§impl<T> CloneToUninit for Twhere
+ T: Clone,
§impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
source§impl<T> WithSubscriber for T
source§fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>where
- S: Into<Dispatch>,
source§fn with_current_subscriber(self) -> WithDispatch<Self>
source§impl<T> DeserializeOwned for Twhere
- T: for<'de> Deserialize<'de>,
\ No newline at end of file
+From<T> for U chooses to do.
+Source§impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts self into a Left variant of Either<Self, Self>
+if into_left is true.
+Converts self into a Right variant of Either<Self, Self>
+otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts self into a Left variant of Either<Self, Self>
+if into_left(&self) returns true.
+Converts self into a Right variant of Either<Self, Self>
+otherwise. Read more§impl<T> WithSubscriber for T
§fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>where
+ S: Into<Dispatch>,
§fn with_current_subscriber(self) -> WithDispatch<Self>
Attaches the current default Subscriber to this type, returning a
+[WithDispatch] wrapper. Read moreSource§impl<T> DeserializeOwned for Twhere
+ T: for<'de> Deserialize<'de>,
§impl<T> ErasedDestructor for Twhere
+ T: 'static,
§impl<T> MaybeSendSync for T
pub struct Level {
- pub visitor_threshold: u32,
- pub difficulty_factor: u32,
+Level in db_sqlx_maria::dev::prelude::dev - Rust Struct Level
pub struct Level {
+ pub visitor_threshold: u32,
+ pub difficulty_factor: u32,
}
Expand description
Level struct that describes threshold-difficulty factor mapping
-Fields§
§visitor_threshold: u32§difficulty_factor: u32Trait Implementations§
§impl<'de> Deserialize<'de> for Level
§fn deserialize<__D>(
- __deserializer: __D
-) -> Result<Level, <__D as Deserializer<'de>>::Error>where
- __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moreFields§
§visitor_threshold: u32§difficulty_factor: u32Trait Implementations§
§impl<'de> Deserialize<'de> for Level
§fn deserialize<__D>(
+ __deserializer: __D,
+) -> Result<Level, <__D as Deserializer<'de>>::Error>where
+ __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more§impl Serialize for Level
§fn serialize<__S>(
&self,
- __serializer: __S
-) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
- __S: Serializer,
Serialize this value into the given Serde serializer. Read more§impl Copy for Level
§impl StructuralPartialEq for Level
Auto Trait Implementations§
§impl RefUnwindSafe for Level
§impl Send for Level
§impl Sync for Level
§impl Unpin for Level
§impl UnwindSafe for Level
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
- T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read moresource§impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
source§impl<T, U> Into<U> for Twhere
- U: From<T>,
source§fn into(self) -> U
Calls U::from(self).
+ __serializer: __S,
+) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
+ __S: Serializer,Serialize this value into the given Serde serializer. Read more§impl Copy for Level
§impl StructuralPartialEq for Level
Auto Trait Implementations§
§impl Freeze for Level
§impl RefUnwindSafe for Level
§impl Send for Level
§impl Sync for Level
§impl Unpin for Level
§impl UnwindSafe for Level
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
+ T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read moreSource§impl<T> CloneToUninit for Twhere
+ T: Clone,
§impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
source§impl<T> WithSubscriber for T
source§fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>where
- S: Into<Dispatch>,
source§fn with_current_subscriber(self) -> WithDispatch<Self>
source§impl<T> DeserializeOwned for Twhere
- T: for<'de> Deserialize<'de>,
\ No newline at end of file
+From<T> for U chooses to do.
+Source§impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts self into a Left variant of Either<Self, Self>
+if into_left is true.
+Converts self into a Right variant of Either<Self, Self>
+otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts self into a Left variant of Either<Self, Self>
+if into_left(&self) returns true.
+Converts self into a Right variant of Either<Self, Self>
+otherwise. Read more§impl<T> WithSubscriber for T
§fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>where
+ S: Into<Dispatch>,
§fn with_current_subscriber(self) -> WithDispatch<Self>
Attaches the current default Subscriber to this type, returning a
+[WithDispatch] wrapper. Read moreSource§impl<T> DeserializeOwned for Twhere
+ T: for<'de> Deserialize<'de>,
§impl<T> ErasedDestructor for Twhere
+ T: 'static,
§impl<T> MaybeSendSync for T
pub struct NameHash {
- pub username: String,
- pub hash: String,
+NameHash in db_sqlx_maria::dev::prelude::dev - Rust Struct NameHash
pub struct NameHash {
+ pub username: String,
+ pub hash: String,
}
Expand description
type encapsulating username and hashed password of a user
-Fields§
§username: Stringusername
-§hash: Stringhashed password
-Trait Implementations§
§impl<'de> Deserialize<'de> for NameHash
§fn deserialize<__D>(
- __deserializer: __D
-) -> Result<NameHash, <__D as Deserializer<'de>>::Error>where
- __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more§impl PartialEq for NameHash
Fields§
§username: Stringusername
+§hash: Stringhashed password
+Trait Implementations§
§impl<'de> Deserialize<'de> for NameHash
§fn deserialize<__D>(
+ __deserializer: __D,
+) -> Result<NameHash, <__D as Deserializer<'de>>::Error>where
+ __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more§impl Serialize for NameHash
§fn serialize<__S>(
&self,
- __serializer: __S
-) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
- __S: Serializer,
Serialize this value into the given Serde serializer. Read more§impl StructuralPartialEq for NameHash
Auto Trait Implementations§
§impl RefUnwindSafe for NameHash
§impl Send for NameHash
§impl Sync for NameHash
§impl Unpin for NameHash
§impl UnwindSafe for NameHash
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
- T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read moresource§impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
source§impl<T, U> Into<U> for Twhere
- U: From<T>,
source§fn into(self) -> U
Calls U::from(self).
+ __serializer: __S,
+) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
+ __S: Serializer,Serialize this value into the given Serde serializer. Read more§impl StructuralPartialEq for NameHash
Auto Trait Implementations§
§impl Freeze for NameHash
§impl RefUnwindSafe for NameHash
§impl Send for NameHash
§impl Sync for NameHash
§impl Unpin for NameHash
§impl UnwindSafe for NameHash
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
+ T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read moreSource§impl<T> CloneToUninit for Twhere
+ T: Clone,
§impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
source§impl<T> WithSubscriber for T
source§fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>where
- S: Into<Dispatch>,
source§fn with_current_subscriber(self) -> WithDispatch<Self>
source§impl<T> DeserializeOwned for Twhere
- T: for<'de> Deserialize<'de>,
\ No newline at end of file
+From<T> for U chooses to do.
+Source§impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts self into a Left variant of Either<Self, Self>
+if into_left is true.
+Converts self into a Right variant of Either<Self, Self>
+otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts self into a Left variant of Either<Self, Self>
+if into_left(&self) returns true.
+Converts self into a Right variant of Either<Self, Self>
+otherwise. Read more§impl<T> WithSubscriber for T
§fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>where
+ S: Into<Dispatch>,
§fn with_current_subscriber(self) -> WithDispatch<Self>
Attaches the current default Subscriber to this type, returning a
+[WithDispatch] wrapper. Read moreSource§impl<T> DeserializeOwned for Twhere
+ T: for<'de> Deserialize<'de>,
§impl<T> ErasedDestructor for Twhere
+ T: 'static,
§impl<T> MaybeSendSync for T
pub struct Notification {
- pub name: Option<String>,
- pub heading: Option<String>,
- pub message: Option<String>,
- pub received: Option<i64>,
- pub id: Option<i32>,
+Notification in db_sqlx_maria::dev::prelude::dev - Rust Struct Notification
pub struct Notification {
+ pub name: Option<String>,
+ pub heading: Option<String>,
+ pub message: Option<String>,
+ pub received: Option<i64>,
+ pub id: Option<i32>,
}
Expand description
Represents notification
-Fields§
§name: Option<String>receiver name of the notification
-§heading: Option<String>heading of the notification
-§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§
§impl Clone for Notification
§fn clone(&self) -> Notification
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source. Read more§impl Debug for Notification
§impl Default for Notification
§fn default() -> Notification
Returns the “default value” for a type. Read more§impl<'de> Deserialize<'de> for Notification
§fn deserialize<__D>(
- __deserializer: __D
-) -> Result<Notification, <__D as Deserializer<'de>>::Error>where
- __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl From<InnerNotification> for Notification
source§fn from(n: InnerNotification) -> Self
Converts to this type from the input type.§impl PartialEq for Notification
§fn eq(&self, other: &Notification) -> bool
This method tests for self and other values to be equal, and is used
-by ==.§impl Serialize for Notification
Fields§
§name: Option<String>receiver name of the notification
+§heading: Option<String>heading of the notification
+§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§
§impl Clone for Notification
§fn clone(&self) -> Notification
Returns a duplicate of the value. Read more1.0.0 · Source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source. Read more§impl Debug for Notification
§impl Default for Notification
§fn default() -> Notification
Returns the “default value” for a type. Read more§impl<'de> Deserialize<'de> for Notification
§fn deserialize<__D>(
+ __deserializer: __D,
+) -> Result<Notification, <__D as Deserializer<'de>>::Error>where
+ __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moreSource§impl From<InnerNotification> for Notification
Source§fn from(n: InnerNotification) -> Self
Converts to this type from the input type.§impl PartialEq for Notification
§impl Serialize for Notification
§fn serialize<__S>(
&self,
- __serializer: __S
-) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
- __S: Serializer,
Serialize this value into the given Serde serializer. Read more§impl StructuralPartialEq for Notification
Auto Trait Implementations§
§impl RefUnwindSafe for Notification
§impl Send for Notification
§impl Sync for Notification
§impl Unpin for Notification
§impl UnwindSafe for Notification
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
- T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read moresource§impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
source§impl<T, U> Into<U> for Twhere
- U: From<T>,
source§fn into(self) -> U
Calls U::from(self).
+ __serializer: __S,
+) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
+ __S: Serializer,Serialize this value into the given Serde serializer. Read more§impl StructuralPartialEq for Notification
Auto Trait Implementations§
§impl Freeze for Notification
§impl RefUnwindSafe for Notification
§impl Send for Notification
§impl Sync for Notification
§impl Unpin for Notification
§impl UnwindSafe for Notification
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
+ T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read moreSource§impl<T> CloneToUninit for Twhere
+ T: Clone,
§impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
source§impl<T> WithSubscriber for T
source§fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>where
- S: Into<Dispatch>,
source§fn with_current_subscriber(self) -> WithDispatch<Self>
source§impl<T> DeserializeOwned for Twhere
- T: for<'de> Deserialize<'de>,
\ No newline at end of file
+From<T> for U chooses to do.
+Source§impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts self into a Left variant of Either<Self, Self>
+if into_left is true.
+Converts self into a Right variant of Either<Self, Self>
+otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts self into a Left variant of Either<Self, Self>
+if into_left(&self) returns true.
+Converts self into a Right variant of Either<Self, Self>
+otherwise. Read more§impl<T> WithSubscriber for T
§fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>where
+ S: Into<Dispatch>,
§fn with_current_subscriber(self) -> WithDispatch<Self>
Attaches the current default Subscriber to this type, returning a
+[WithDispatch] wrapper. Read moreSource§impl<T> DeserializeOwned for Twhere
+ T: for<'de> Deserialize<'de>,
§impl<T> ErasedDestructor for Twhere
+ T: 'static,
§impl<T> MaybeSendSync for T
pub struct PerformanceAnalytics {
- pub id: usize,
- pub time: u32,
- pub difficulty_factor: u32,
- pub worker_type: String,
+PerformanceAnalytics in db_sqlx_maria::dev::prelude::dev - Rust Struct PerformanceAnalytics
pub struct PerformanceAnalytics {
+ pub id: usize,
+ pub time: u32,
+ pub difficulty_factor: u32,
+ pub worker_type: String,
}
Expand description
Proof-of-Work CAPTCHA performance analytics
-Fields§
§id: usizelog ID
-§time: u32time taken to generate proof
-§difficulty_factor: u32difficulty factor for which the proof was generated
-§worker_type: Stringworker/client type: wasm, javascript, python, etc.
-Trait Implementations§
§impl Clone for PerformanceAnalytics
§fn clone(&self) -> PerformanceAnalytics
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source. Read more§impl Debug for PerformanceAnalytics
§impl Default for PerformanceAnalytics
§fn default() -> PerformanceAnalytics
Returns the “default value” for a type. Read more§impl<'de> Deserialize<'de> for PerformanceAnalytics
§fn deserialize<__D>(
- __deserializer: __D
-) -> Result<PerformanceAnalytics, <__D as Deserializer<'de>>::Error>where
- __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more§impl PartialEq for PerformanceAnalytics
§fn eq(&self, other: &PerformanceAnalytics) -> bool
This method tests for self and other values to be equal, and is used
-by ==.§impl Serialize for PerformanceAnalytics
Fields§
§id: usizelog ID
+§time: u32time taken to generate proof
+§difficulty_factor: u32difficulty factor for which the proof was generated
+§worker_type: Stringworker/client type: wasm, javascript, python, etc.
+Trait Implementations§
§impl Clone for PerformanceAnalytics
§fn clone(&self) -> PerformanceAnalytics
Returns a duplicate of the value. Read more1.0.0 · Source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source. Read more§impl Debug for PerformanceAnalytics
§impl Default for PerformanceAnalytics
§fn default() -> PerformanceAnalytics
Returns the “default value” for a type. Read more§impl<'de> Deserialize<'de> for PerformanceAnalytics
§fn deserialize<__D>(
+ __deserializer: __D,
+) -> Result<PerformanceAnalytics, <__D as Deserializer<'de>>::Error>where
+ __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more§impl PartialEq for PerformanceAnalytics
§impl Serialize for PerformanceAnalytics
§fn serialize<__S>(
&self,
- __serializer: __S
-) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
- __S: Serializer,
Serialize this value into the given Serde serializer. Read more§impl StructuralPartialEq for PerformanceAnalytics
Auto Trait Implementations§
§impl RefUnwindSafe for PerformanceAnalytics
§impl Send for PerformanceAnalytics
§impl Sync for PerformanceAnalytics
§impl Unpin for PerformanceAnalytics
§impl UnwindSafe for PerformanceAnalytics
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
- T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read moresource§impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
source§impl<T, U> Into<U> for Twhere
- U: From<T>,
source§fn into(self) -> U
Calls U::from(self).
+ __serializer: __S,
+) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
+ __S: Serializer,Serialize this value into the given Serde serializer. Read more§impl StructuralPartialEq for PerformanceAnalytics
Auto Trait Implementations§
§impl Freeze for PerformanceAnalytics
§impl RefUnwindSafe for PerformanceAnalytics
§impl Send for PerformanceAnalytics
§impl Sync for PerformanceAnalytics
§impl Unpin for PerformanceAnalytics
§impl UnwindSafe for PerformanceAnalytics
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
+ T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read moreSource§impl<T> CloneToUninit for Twhere
+ T: Clone,
§impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
source§impl<T> WithSubscriber for T
source§fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>where
- S: Into<Dispatch>,
source§fn with_current_subscriber(self) -> WithDispatch<Self>
source§impl<T> DeserializeOwned for Twhere
- T: for<'de> Deserialize<'de>,
\ No newline at end of file
+From<T> for U chooses to do.
+Source§impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts self into a Left variant of Either<Self, Self>
+if into_left is true.
+Converts self into a Right variant of Either<Self, Self>
+otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts self into a Left variant of Either<Self, Self>
+if into_left(&self) returns true.
+Converts self into a Right variant of Either<Self, Self>
+otherwise. Read more§impl<T> WithSubscriber for T
§fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>where
+ S: Into<Dispatch>,
§fn with_current_subscriber(self) -> WithDispatch<Self>
Attaches the current default Subscriber to this type, returning a
+[WithDispatch] wrapper. Read moreSource§impl<T> DeserializeOwned for Twhere
+ T: for<'de> Deserialize<'de>,
§impl<T> ErasedDestructor for Twhere
+ T: 'static,
§impl<T> MaybeSendSync for T
pub struct Register<'a> {
- pub username: &'a str,
- pub secret: &'a str,
- pub hash: &'a str,
- pub email: Option<&'a str>,
+Register in db_sqlx_maria::dev::prelude::dev - Rust Struct Register
pub struct Register<'a> {
+ pub username: &'a str,
+ pub secret: &'a str,
+ pub hash: &'a str,
+ pub email: Option<&'a str>,
}
Expand description
Data required to register a new user
-Fields§
§username: &'a strusername of new user
-§secret: &'a strsecret of new user
-§hash: &'a strhashed password of new use
-§email: Option<&'a str>Optionally, email of new use
-Trait Implementations§
§impl<'de, 'a> Deserialize<'de> for Register<'a>where
- 'de: 'a,
§fn deserialize<__D>(
- __deserializer: __D
-) -> Result<Register<'a>, <__D as Deserializer<'de>>::Error>where
- __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more§impl<'a> PartialEq for Register<'a>
Fields§
§username: &'a strusername of new user
+§secret: &'a strsecret of new user
+§hash: &'a strhashed password of new use
+§email: Option<&'a str>Optionally, email of new use
+Trait Implementations§
§impl<'de, 'a> Deserialize<'de> for Register<'a>where
+ 'de: 'a,
§fn deserialize<__D>(
+ __deserializer: __D,
+) -> Result<Register<'a>, <__D as Deserializer<'de>>::Error>where
+ __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more§impl<'a> Serialize for Register<'a>
§fn serialize<__S>(
&self,
- __serializer: __S
-) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
- __S: Serializer,
Serialize this value into the given Serde serializer. Read more§impl<'a> StructuralPartialEq for Register<'a>
Auto Trait Implementations§
§impl<'a> RefUnwindSafe for Register<'a>
§impl<'a> Send for Register<'a>
§impl<'a> Sync for Register<'a>
§impl<'a> Unpin for Register<'a>
§impl<'a> UnwindSafe for Register<'a>
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
- T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read moresource§impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
source§impl<T, U> Into<U> for Twhere
- U: From<T>,
source§fn into(self) -> U
Calls U::from(self).
+ __serializer: __S,
+) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
+ __S: Serializer,Serialize this value into the given Serde serializer. Read more§impl<'a> StructuralPartialEq for Register<'a>
Auto Trait Implementations§
§impl<'a> Freeze for Register<'a>
§impl<'a> RefUnwindSafe for Register<'a>
§impl<'a> Send for Register<'a>
§impl<'a> Sync for Register<'a>
§impl<'a> Unpin for Register<'a>
§impl<'a> UnwindSafe for Register<'a>
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
+ T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read moreSource§impl<T> CloneToUninit for Twhere
+ T: Clone,
§impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
source§impl<T> WithSubscriber for T
source§fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>where
- S: Into<Dispatch>,
source§fn with_current_subscriber(self) -> WithDispatch<Self>
source§impl<T> DeserializeOwned for Twhere
- T: for<'de> Deserialize<'de>,
\ No newline at end of file
+From<T> for U chooses to do.
+Source§impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts self into a Left variant of Either<Self, Self>
+if into_left is true.
+Converts self into a Right variant of Either<Self, Self>
+otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts self into a Left variant of Either<Self, Self>
+if into_left(&self) returns true.
+Converts self into a Right variant of Either<Self, Self>
+otherwise. Read more§impl<T> WithSubscriber for T
§fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>where
+ S: Into<Dispatch>,
§fn with_current_subscriber(self) -> WithDispatch<Self>
Attaches the current default Subscriber to this type, returning a
+[WithDispatch] wrapper. Read moreSource§impl<T> DeserializeOwned for Twhere
+ T: for<'de> Deserialize<'de>,
§impl<T> ErasedDestructor for Twhere
+ T: 'static,
§impl<T> MaybeSendSync for T
pub struct Secret {
- pub secret: String,
+Secret in db_sqlx_maria::dev::prelude::dev - Rust Struct Secret
pub struct Secret {
+ pub secret: String,
}
Expand description
datastructure representing a user’s secret
-Fields§
§secret: Stringuser’s secret
-Trait Implementations§
§impl<'de> Deserialize<'de> for Secret
§fn deserialize<__D>(
- __deserializer: __D
-) -> Result<Secret, <__D as Deserializer<'de>>::Error>where
- __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moreFields§
§secret: Stringuser’s secret
+Trait Implementations§
§impl<'de> Deserialize<'de> for Secret
§fn deserialize<__D>(
+ __deserializer: __D,
+) -> Result<Secret, <__D as Deserializer<'de>>::Error>where
+ __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more§impl Serialize for Secret
§fn serialize<__S>(
&self,
- __serializer: __S
-) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
- __S: Serializer,
Serialize this value into the given Serde serializer. Read more§impl StructuralPartialEq for Secret
Auto Trait Implementations§
§impl RefUnwindSafe for Secret
§impl Send for Secret
§impl Sync for Secret
§impl Unpin for Secret
§impl UnwindSafe for Secret
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
- T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read moresource§impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
source§impl<T, U> Into<U> for Twhere
- U: From<T>,
source§fn into(self) -> U
Calls U::from(self).
+ __serializer: __S,
+) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
+ __S: Serializer,Serialize this value into the given Serde serializer. Read more§impl StructuralPartialEq for Secret
Auto Trait Implementations§
§impl Freeze for Secret
§impl RefUnwindSafe for Secret
§impl Send for Secret
§impl Sync for Secret
§impl Unpin for Secret
§impl UnwindSafe for Secret
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
+ T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read moreSource§impl<T> CloneToUninit for Twhere
+ T: Clone,
§impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
source§impl<T> WithSubscriber for T
source§fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>where
- S: Into<Dispatch>,
source§fn with_current_subscriber(self) -> WithDispatch<Self>
source§impl<T> DeserializeOwned for Twhere
- T: for<'de> Deserialize<'de>,
\ No newline at end of file
+From<T> for U chooses to do.
+Source§impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts self into a Left variant of Either<Self, Self>
+if into_left is true.
+Converts self into a Right variant of Either<Self, Self>
+otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts self into a Left variant of Either<Self, Self>
+if into_left(&self) returns true.
+Converts self into a Right variant of Either<Self, Self>
+otherwise. Read more§impl<T> WithSubscriber for T
§fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>where
+ S: Into<Dispatch>,
§fn with_current_subscriber(self) -> WithDispatch<Self>
Attaches the current default Subscriber to this type, returning a
+[WithDispatch] wrapper. Read moreSource§impl<T> DeserializeOwned for Twhere
+ T: for<'de> Deserialize<'de>,
§impl<T> ErasedDestructor for Twhere
+ T: 'static,
§impl<T> MaybeSendSync for T
pub struct StatsUnixTimestamp {
- pub config_fetches: Vec<i64>,
- pub solves: Vec<i64>,
- pub confirms: Vec<i64>,
+StatsUnixTimestamp in db_sqlx_maria::dev::prelude::dev - Rust Struct StatsUnixTimestamp
pub struct StatsUnixTimestamp {
+ pub config_fetches: Vec<i64>,
+ pub solves: Vec<i64>,
+ pub confirms: Vec<i64>,
}
Expand description
Captcha statistics with time recorded in UNIX epoch formats
-Fields§
§config_fetches: Vec<i64>times at which the configuration were fetched
-§solves: Vec<i64>times at which the PoW was solved
-§confirms: Vec<i64>times at which the PoW token was verified
-Trait Implementations§
§impl Clone for StatsUnixTimestamp
§fn clone(&self) -> StatsUnixTimestamp
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source. Read more§impl Debug for StatsUnixTimestamp
§impl Default for StatsUnixTimestamp
§fn default() -> StatsUnixTimestamp
Returns the “default value” for a type. Read more§impl<'de> Deserialize<'de> for StatsUnixTimestamp
§fn deserialize<__D>(
- __deserializer: __D
-) -> Result<StatsUnixTimestamp, <__D as Deserializer<'de>>::Error>where
- __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more§impl PartialEq for StatsUnixTimestamp
§fn eq(&self, other: &StatsUnixTimestamp) -> bool
This method tests for self and other values to be equal, and is used
-by ==.§impl Serialize for StatsUnixTimestamp
Fields§
§config_fetches: Vec<i64>times at which the configuration were fetched
+§solves: Vec<i64>times at which the PoW was solved
+§confirms: Vec<i64>times at which the PoW token was verified
+Trait Implementations§
§impl Clone for StatsUnixTimestamp
§fn clone(&self) -> StatsUnixTimestamp
Returns a duplicate of the value. Read more1.0.0 · Source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source. Read more§impl Debug for StatsUnixTimestamp
§impl Default for StatsUnixTimestamp
§fn default() -> StatsUnixTimestamp
Returns the “default value” for a type. Read more§impl<'de> Deserialize<'de> for StatsUnixTimestamp
§fn deserialize<__D>(
+ __deserializer: __D,
+) -> Result<StatsUnixTimestamp, <__D as Deserializer<'de>>::Error>where
+ __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more§impl PartialEq for StatsUnixTimestamp
§impl Serialize for StatsUnixTimestamp
§fn serialize<__S>(
&self,
- __serializer: __S
-) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
- __S: Serializer,
Serialize this value into the given Serde serializer. Read more§impl StructuralPartialEq for StatsUnixTimestamp
Auto Trait Implementations§
§impl RefUnwindSafe for StatsUnixTimestamp
§impl Send for StatsUnixTimestamp
§impl Sync for StatsUnixTimestamp
§impl Unpin for StatsUnixTimestamp
§impl UnwindSafe for StatsUnixTimestamp
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
- T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read moresource§impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
source§impl<T, U> Into<U> for Twhere
- U: From<T>,
source§fn into(self) -> U
Calls U::from(self).
+ __serializer: __S,
+) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
+ __S: Serializer,Serialize this value into the given Serde serializer. Read more§impl StructuralPartialEq for StatsUnixTimestamp
Auto Trait Implementations§
§impl Freeze for StatsUnixTimestamp
§impl RefUnwindSafe for StatsUnixTimestamp
§impl Send for StatsUnixTimestamp
§impl Sync for StatsUnixTimestamp
§impl Unpin for StatsUnixTimestamp
§impl UnwindSafe for StatsUnixTimestamp
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
+ T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read moreSource§impl<T> CloneToUninit for Twhere
+ T: Clone,
§impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
source§impl<T> WithSubscriber for T
source§fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>where
- S: Into<Dispatch>,
source§fn with_current_subscriber(self) -> WithDispatch<Self>
source§impl<T> DeserializeOwned for Twhere
- T: for<'de> Deserialize<'de>,
\ No newline at end of file
+From<T> for U chooses to do.
+Source§impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts self into a Left variant of Either<Self, Self>
+if into_left is true.
+Converts self into a Right variant of Either<Self, Self>
+otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts self into a Left variant of Either<Self, Self>
+if into_left(&self) returns true.
+Converts self into a Right variant of Either<Self, Self>
+otherwise. Read more§impl<T> WithSubscriber for T
§fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>where
+ S: Into<Dispatch>,
§fn with_current_subscriber(self) -> WithDispatch<Self>
Attaches the current default Subscriber to this type, returning a
+[WithDispatch] wrapper. Read moreSource§impl<T> DeserializeOwned for Twhere
+ T: for<'de> Deserialize<'de>,
§impl<T> ErasedDestructor for Twhere
+ T: 'static,
§impl<T> MaybeSendSync for T
pub struct TrafficPattern {
- pub avg_traffic: u32,
- pub peak_sustainable_traffic: u32,
- pub broke_my_site_traffic: Option<u32>,
+TrafficPattern in db_sqlx_maria::dev::prelude::dev - Rust Struct TrafficPattern
pub struct TrafficPattern {
+ pub avg_traffic: u32,
+ pub peak_sustainable_traffic: u32,
+ pub broke_my_site_traffic: Option<u32>,
}
Expand description
User’s traffic pattern; used in generating a captcha configuration
-Fields§
§avg_traffic: u32average traffic of user’s website
-§peak_sustainable_traffic: u32the peak traffic that the user’s website can handle
-§broke_my_site_traffic: Option<u32>traffic that bought the user’s website down; optional
-Trait Implementations§
§impl Clone for TrafficPattern
§fn clone(&self) -> TrafficPattern
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source. Read more§impl Debug for TrafficPattern
§impl Default for TrafficPattern
§fn default() -> TrafficPattern
Returns the “default value” for a type. Read more§impl<'de> Deserialize<'de> for TrafficPattern
§fn deserialize<__D>(
- __deserializer: __D
-) -> Result<TrafficPattern, <__D as Deserializer<'de>>::Error>where
- __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more§impl PartialEq for TrafficPattern
§fn eq(&self, other: &TrafficPattern) -> bool
This method tests for self and other values to be equal, and is used
-by ==.§impl Serialize for TrafficPattern
Fields§
§avg_traffic: u32average traffic of user’s website
+§peak_sustainable_traffic: u32the peak traffic that the user’s website can handle
+§broke_my_site_traffic: Option<u32>traffic that bought the user’s website down; optional
+Trait Implementations§
§impl Clone for TrafficPattern
§fn clone(&self) -> TrafficPattern
Returns a duplicate of the value. Read more1.0.0 · Source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source. Read more§impl Debug for TrafficPattern
§impl Default for TrafficPattern
§fn default() -> TrafficPattern
Returns the “default value” for a type. Read more§impl<'de> Deserialize<'de> for TrafficPattern
§fn deserialize<__D>(
+ __deserializer: __D,
+) -> Result<TrafficPattern, <__D as Deserializer<'de>>::Error>where
+ __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more§impl PartialEq for TrafficPattern
§impl Serialize for TrafficPattern
§fn serialize<__S>(
&self,
- __serializer: __S
-) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
- __S: Serializer,
Serialize this value into the given Serde serializer. Read more§impl StructuralPartialEq for TrafficPattern
Auto Trait Implementations§
§impl RefUnwindSafe for TrafficPattern
§impl Send for TrafficPattern
§impl Sync for TrafficPattern
§impl Unpin for TrafficPattern
§impl UnwindSafe for TrafficPattern
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
- T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read moresource§impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
source§impl<T, U> Into<U> for Twhere
- U: From<T>,
source§fn into(self) -> U
Calls U::from(self).
+ __serializer: __S,
+) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
+ __S: Serializer,Serialize this value into the given Serde serializer. Read more§impl StructuralPartialEq for TrafficPattern
Auto Trait Implementations§
§impl Freeze for TrafficPattern
§impl RefUnwindSafe for TrafficPattern
§impl Send for TrafficPattern
§impl Sync for TrafficPattern
§impl Unpin for TrafficPattern
§impl UnwindSafe for TrafficPattern
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
+ T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read moreSource§impl<T> CloneToUninit for Twhere
+ T: Clone,
§impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
source§impl<T> WithSubscriber for T
source§fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>where
- S: Into<Dispatch>,
source§fn with_current_subscriber(self) -> WithDispatch<Self>
source§impl<T> DeserializeOwned for Twhere
- T: for<'de> Deserialize<'de>,
\ No newline at end of file
+From<T> for U chooses to do.
+Source§impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts self into a Left variant of Either<Self, Self>
+if into_left is true.
+Converts self into a Right variant of Either<Self, Self>
+otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts self into a Left variant of Either<Self, Self>
+if into_left(&self) returns true.
+Converts self into a Right variant of Either<Self, Self>
+otherwise. Read more§impl<T> WithSubscriber for T
§fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>where
+ S: Into<Dispatch>,
§fn with_current_subscriber(self) -> WithDispatch<Self>
Attaches the current default Subscriber to this type, returning a
+[WithDispatch] wrapper. Read moreSource§impl<T> DeserializeOwned for Twhere
+ T: for<'de> Deserialize<'de>,
§impl<T> ErasedDestructor for Twhere
+ T: 'static,
§impl<T> MaybeSendSync for T
pub struct UpdateEmail<'a> {
- pub username: &'a str,
- pub new_email: &'a str,
+UpdateEmail in db_sqlx_maria::dev::prelude::dev - Rust Struct 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 strusername of the user
-§new_email: &'a strnew email address of the user
-Trait Implementations§
§impl<'a> Clone for UpdateEmail<'a>
§fn clone(&self) -> UpdateEmail<'a>
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source. Read more§impl<'a> Debug for UpdateEmail<'a>
§impl<'de, 'a> Deserialize<'de> for UpdateEmail<'a>where
- 'de: 'a,
§fn deserialize<__D>(
- __deserializer: __D
-) -> Result<UpdateEmail<'a>, <__D as Deserializer<'de>>::Error>where
- __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more§impl<'a> PartialEq for UpdateEmail<'a>
§fn eq(&self, other: &UpdateEmail<'a>) -> bool
This method tests for self and other values to be equal, and is used
-by ==.§impl<'a> Serialize for UpdateEmail<'a>
Fields§
§username: &'a strusername of the user
+§new_email: &'a strnew email address of the user
+Trait Implementations§
§impl<'a> Clone for UpdateEmail<'a>
§fn clone(&self) -> UpdateEmail<'a>
Returns a duplicate of the value. Read more1.0.0 · Source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source. Read more§impl<'a> Debug for UpdateEmail<'a>
§impl<'de, 'a> Deserialize<'de> for UpdateEmail<'a>where
+ 'de: 'a,
§fn deserialize<__D>(
+ __deserializer: __D,
+) -> Result<UpdateEmail<'a>, <__D as Deserializer<'de>>::Error>where
+ __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more§impl<'a> PartialEq for UpdateEmail<'a>
§impl<'a> Serialize for UpdateEmail<'a>
§fn serialize<__S>(
&self,
- __serializer: __S
-) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
- __S: Serializer,
Serialize this value into the given Serde serializer. Read more§impl<'a> StructuralPartialEq for UpdateEmail<'a>
Auto Trait Implementations§
§impl<'a> RefUnwindSafe for UpdateEmail<'a>
§impl<'a> Send for UpdateEmail<'a>
§impl<'a> Sync for UpdateEmail<'a>
§impl<'a> Unpin for UpdateEmail<'a>
§impl<'a> UnwindSafe for UpdateEmail<'a>
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
- T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read moresource§impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
source§impl<T, U> Into<U> for Twhere
- U: From<T>,
source§fn into(self) -> U
Calls U::from(self).
+ __serializer: __S,
+) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
+ __S: Serializer,Serialize this value into the given Serde serializer. Read more§impl<'a> StructuralPartialEq for UpdateEmail<'a>
Auto Trait Implementations§
§impl<'a> Freeze for UpdateEmail<'a>
§impl<'a> RefUnwindSafe for UpdateEmail<'a>
§impl<'a> Send for UpdateEmail<'a>
§impl<'a> Sync for UpdateEmail<'a>
§impl<'a> Unpin for UpdateEmail<'a>
§impl<'a> UnwindSafe for UpdateEmail<'a>
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
+ T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read moreSource§impl<T> CloneToUninit for Twhere
+ T: Clone,
§impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
source§impl<T> WithSubscriber for T
source§fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>where
- S: Into<Dispatch>,
source§fn with_current_subscriber(self) -> WithDispatch<Self>
source§impl<T> DeserializeOwned for Twhere
- T: for<'de> Deserialize<'de>,
\ No newline at end of file
+From<T> for U chooses to do.
+Source§impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts self into a Left variant of Either<Self, Self>
+if into_left is true.
+Converts self into a Right variant of Either<Self, Self>
+otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts self into a Left variant of Either<Self, Self>
+if into_left(&self) returns true.
+Converts self into a Right variant of Either<Self, Self>
+otherwise. Read more§impl<T> WithSubscriber for T
§fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>where
+ S: Into<Dispatch>,
§fn with_current_subscriber(self) -> WithDispatch<Self>
Attaches the current default Subscriber to this type, returning a
+[WithDispatch] wrapper. Read moreSource§impl<T> DeserializeOwned for Twhere
+ T: for<'de> Deserialize<'de>,
§impl<T> ErasedDestructor for Twhere
+ T: 'static,
§impl<T> MaybeSendSync for T
pub trait CloneSPDatabase {
+CloneSPDatabase in db_sqlx_maria::dev::prelude::dev - Rust Trait CloneSPDatabase
pub trait CloneSPDatabase {
// Required method
- fn clone_db(&self) -> Box<dyn MCDatabase>;
+ fn clone_db(&self) -> Box<dyn MCDatabase>;
}
Expand description
Trait to clone MCDatabase
-Required Methods§
fn clone_db(&self) -> Box<dyn MCDatabase>
clone DB
+Required Methods§
fn clone_db(&self) -> Box<dyn MCDatabase>
clone DB
Implementors§
§impl<T> CloneSPDatabase for Twhere
- T: MCDatabase + Clone + 'static,
\ No newline at end of file
+ T: MCDatabase + Clone + 'static,pub trait Connect {
+Connect in db_sqlx_maria::dev::prelude::dev - Rust Trait Connect
pub trait Connect {
type Pool: MCDatabase;
// Required method
fn connect<'async_trait>(
- self
- ) -> Pin<Box<dyn Future<Output = Result<Self::Pool, DBError>> + Send + 'async_trait>>
+ self,
+ ) -> Pin<Box<dyn Future<Output = Result<Self::Pool, DBError>> + Send + 'async_trait>>
where Self: 'async_trait;
}
Expand description
Create database connection
Required Associated Types§
type Pool: MCDatabase
database specific pool-type
Required Methods§
fn connect<'async_trait>(
- self
-) -> Pin<Box<dyn Future<Output = Result<Self::Pool, DBError>> + Send + 'async_trait>>where
+ self,
+) -> Pin<Box<dyn Future<Output = Result<Self::Pool, DBError>> + Send + 'async_trait>>where
Self: 'async_trait,database specific error-type
create connection pool
-Implementors§
\ No newline at end of file
+pub trait DBOps: GetConnection + Migrate { }Database operations trait(migrations, pool creation and fetching connection from pool)
+pub trait DBOps: GetConnection + Migrate { }Database operations trait(migrations, pool creation and fetching connection from pool)
pub trait GetConnection {
+GetConnection in db_sqlx_maria::dev::prelude::dev - Rust Trait GetConnection
pub trait GetConnection {
type Conn;
// Required method
fn get_conn<'life0, 'async_trait>(
- &'life0 self
- ) -> Pin<Box<dyn Future<Output = Result<Self::Conn, DBError>> + Send + 'async_trait>>
+ &'life0 self,
+ ) -> Pin<Box<dyn Future<Output = Result<Self::Conn, DBError>> + Send + 'async_trait>>
where 'life0: 'async_trait,
Self: 'async_trait;
}
Expand description
Get database connection
Required Associated Types§
type Conn
database connection type
Required Methods§
fn get_conn<'life0, 'async_trait>(
- &'life0 self
-) -> Pin<Box<dyn Future<Output = Result<Self::Conn, DBError>> + Send + 'async_trait>>where
+ &'life0 self,
+) -> Pin<Box<dyn Future<Output = Result<Self::Conn, DBError>> + Send + 'async_trait>>where
'life0: 'async_trait,
Self: 'async_trait,database specific error-type
get connection from connection pool
diff --git a/db_sqlx_maria/dev/prelude/dev/trait.MCDatabase.html b/db_sqlx_maria/dev/prelude/dev/trait.MCDatabase.html
index 09e155bc..cf7867cf 100644
--- a/db_sqlx_maria/dev/prelude/dev/trait.MCDatabase.html
+++ b/db_sqlx_maria/dev/prelude/dev/trait.MCDatabase.html
@@ -1,139 +1,141 @@
-MCDatabase in db_sqlx_maria::dev::prelude::dev - Rust
- Trait db_sqlx_maria::dev::prelude::dev::MCDatabase
pub trait MCDatabase: Send + Sync + CloneSPDatabase {
+MCDatabase in db_sqlx_maria::dev::prelude::dev - Rust Trait MCDatabase
pub trait MCDatabase:
+ Send
+ + Sync
+ + CloneSPDatabase {
Show 49 methods
// Required methods
fn ping<'life0, 'async_trait>(
- &'life0 self
- ) -> Pin<Box<dyn Future<Output = bool> + Send + 'async_trait>>
+ &'life0 self,
+ ) -> Pin<Box<dyn Future<Output = bool> + Send + 'async_trait>>
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>>
+ p: &'life1 Register<'_>,
+ ) -> Pin<Box<dyn Future<Output = Result<(), DBError>> + Send + 'async_trait>>
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>>
+ username: &'life1 str,
+ ) -> Pin<Box<dyn Future<Output = Result<(), DBError>> + Send + 'async_trait>>
where 'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait;
fn username_exists<'life0, 'life1, 'async_trait>(
&'life0 self,
- username: &'life1 str
- ) -> Pin<Box<dyn Future<Output = Result<bool, DBError>> + Send + 'async_trait>>
+ username: &'life1 str,
+ ) -> Pin<Box<dyn Future<Output = Result<bool, DBError>> + Send + 'async_trait>>
where 'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait;
fn get_email<'life0, 'life1, 'async_trait>(
&'life0 self,
- username: &'life1 str
- ) -> Pin<Box<dyn Future<Output = Result<Option<String>, DBError>> + Send + 'async_trait>>
+ username: &'life1 str,
+ ) -> Pin<Box<dyn Future<Output = Result<Option<String>, DBError>> + Send + 'async_trait>>
where 'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait;
fn email_exists<'life0, 'life1, 'async_trait>(
&'life0 self,
- email: &'life1 str
- ) -> Pin<Box<dyn Future<Output = Result<bool, DBError>> + Send + 'async_trait>>
+ email: &'life1 str,
+ ) -> Pin<Box<dyn Future<Output = Result<bool, DBError>> + Send + 'async_trait>>
where 'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait;
fn update_email<'life0, 'life1, 'async_trait>(
&'life0 self,
- p: &'life1 UpdateEmail<'_>
- ) -> Pin<Box<dyn Future<Output = Result<(), DBError>> + Send + 'async_trait>>
+ p: &'life1 UpdateEmail<'_>,
+ ) -> Pin<Box<dyn Future<Output = Result<(), DBError>> + Send + 'async_trait>>
where 'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait;
fn get_password<'life0, 'life1, 'async_trait>(
&'life0 self,
- l: &'life1 Login<'_>
- ) -> Pin<Box<dyn Future<Output = Result<NameHash, DBError>> + Send + 'async_trait>>
+ l: &'life1 Login<'_>,
+ ) -> Pin<Box<dyn Future<Output = Result<NameHash, DBError>> + Send + 'async_trait>>
where 'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait;
fn update_password<'life0, 'life1, 'async_trait>(
&'life0 self,
- p: &'life1 NameHash
- ) -> Pin<Box<dyn Future<Output = Result<(), DBError>> + Send + 'async_trait>>
+ p: &'life1 NameHash,
+ ) -> Pin<Box<dyn Future<Output = Result<(), DBError>> + Send + 'async_trait>>
where 'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait;
fn update_username<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
- current: &'life1 str,
- new: &'life2 str
- ) -> Pin<Box<dyn Future<Output = Result<(), DBError>> + Send + 'async_trait>>
+ current: &'life1 str,
+ new: &'life2 str,
+ ) -> Pin<Box<dyn Future<Output = Result<(), DBError>> + Send + 'async_trait>>
where 'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
Self: 'async_trait;
fn get_secret<'life0, 'life1, 'async_trait>(
&'life0 self,
- username: &'life1 str
- ) -> Pin<Box<dyn Future<Output = Result<Secret, DBError>> + Send + 'async_trait>>
+ username: &'life1 str,
+ ) -> Pin<Box<dyn Future<Output = Result<Secret, DBError>> + Send + 'async_trait>>
where 'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait;
fn get_secret_from_captcha<'life0, 'life1, 'async_trait>(
&'life0 self,
- key: &'life1 str
- ) -> Pin<Box<dyn Future<Output = Result<Secret, DBError>> + Send + 'async_trait>>
+ key: &'life1 str,
+ ) -> Pin<Box<dyn Future<Output = Result<Secret, DBError>> + Send + 'async_trait>>
where 'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait;
fn update_secret<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
- username: &'life1 str,
- secret: &'life2 str
- ) -> Pin<Box<dyn Future<Output = Result<(), DBError>> + Send + 'async_trait>>
+ username: &'life1 str,
+ secret: &'life2 str,
+ ) -> Pin<Box<dyn Future<Output = Result<(), DBError>> + Send + 'async_trait>>
where 'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
Self: 'async_trait;
fn create_captcha<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
- username: &'life1 str,
- p: &'life2 CreateCaptcha<'_>
- ) -> Pin<Box<dyn Future<Output = Result<(), DBError>> + Send + 'async_trait>>
+ username: &'life1 str,
+ p: &'life2 CreateCaptcha<'_>,
+ ) -> Pin<Box<dyn Future<Output = Result<(), DBError>> + Send + 'async_trait>>
where 'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
Self: 'async_trait;
fn get_captcha_config<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
- username: &'life1 str,
- key: &'life2 str
- ) -> Pin<Box<dyn Future<Output = Result<Captcha, DBError>> + Send + 'async_trait>>
+ username: &'life1 str,
+ key: &'life2 str,
+ ) -> Pin<Box<dyn Future<Output = Result<Captcha, DBError>> + Send + 'async_trait>>
where 'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
Self: 'async_trait;
fn get_all_user_captchas<'life0, 'life1, 'async_trait>(
&'life0 self,
- username: &'life1 str
- ) -> Pin<Box<dyn Future<Output = Result<Vec<Captcha>, DBError>> + Send + 'async_trait>>
+ username: &'life1 str,
+ ) -> Pin<Box<dyn Future<Output = Result<Vec<Captcha>, DBError>> + Send + 'async_trait>>
where 'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait;
fn update_captcha_metadata<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
- username: &'life1 str,
- p: &'life2 CreateCaptcha<'_>
- ) -> Pin<Box<dyn Future<Output = Result<(), DBError>> + Send + 'async_trait>>
+ username: &'life1 str,
+ p: &'life2 CreateCaptcha<'_>,
+ ) -> Pin<Box<dyn Future<Output = Result<(), DBError>> + Send + 'async_trait>>
where 'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
Self: 'async_trait;
fn update_captcha_key<'life0, 'life1, 'life2, 'life3, 'async_trait>(
&'life0 self,
- username: &'life1 str,
- old_key: &'life2 str,
- new_key: &'life3 str
- ) -> Pin<Box<dyn Future<Output = Result<(), DBError>> + Send + 'async_trait>>
+ username: &'life1 str,
+ old_key: &'life2 str,
+ new_key: &'life3 str,
+ ) -> Pin<Box<dyn Future<Output = Result<(), DBError>> + Send + 'async_trait>>
where 'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
@@ -141,10 +143,10 @@
Self: 'async_trait;
fn add_captcha_levels<'life0, 'life1, 'life2, 'life3, 'async_trait>(
&'life0 self,
- username: &'life1 str,
- captcha_key: &'life2 str,
- levels: &'life3 [Level]
- ) -> Pin<Box<dyn Future<Output = Result<(), DBError>> + Send + 'async_trait>>
+ username: &'life1 str,
+ captcha_key: &'life2 str,
+ levels: &'life3 [Level],
+ ) -> Pin<Box<dyn Future<Output = Result<(), DBError>> + Send + 'async_trait>>
where 'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
@@ -152,53 +154,53 @@
Self: 'async_trait;
fn captcha_exists<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
- username: Option<&'life1 str>,
- captcha_key: &'life2 str
- ) -> Pin<Box<dyn Future<Output = Result<bool, DBError>> + Send + 'async_trait>>
+ username: Option<&'life1 str>,
+ captcha_key: &'life2 str,
+ ) -> Pin<Box<dyn Future<Output = Result<bool, DBError>> + Send + 'async_trait>>
where 'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
Self: 'async_trait;
fn delete_captcha_levels<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
- username: &'life1 str,
- captcha_key: &'life2 str
- ) -> Pin<Box<dyn Future<Output = Result<(), DBError>> + Send + 'async_trait>>
+ username: &'life1 str,
+ captcha_key: &'life2 str,
+ ) -> Pin<Box<dyn Future<Output = Result<(), DBError>> + Send + 'async_trait>>
where 'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
Self: 'async_trait;
fn delete_captcha<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
- username: &'life1 str,
- captcha_key: &'life2 str
- ) -> Pin<Box<dyn Future<Output = Result<(), DBError>> + Send + 'async_trait>>
+ username: &'life1 str,
+ captcha_key: &'life2 str,
+ ) -> Pin<Box<dyn Future<Output = Result<(), DBError>> + Send + 'async_trait>>
where 'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
Self: 'async_trait;
fn get_captcha_levels<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
- username: Option<&'life1 str>,
- captcha_key: &'life2 str
- ) -> Pin<Box<dyn Future<Output = Result<Vec<Level>, DBError>> + Send + 'async_trait>>
+ username: Option<&'life1 str>,
+ captcha_key: &'life2 str,
+ ) -> Pin<Box<dyn Future<Output = Result<Vec<Level>, DBError>> + Send + 'async_trait>>
where 'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
Self: 'async_trait;
fn get_captcha_cooldown<'life0, 'life1, 'async_trait>(
&'life0 self,
- captcha_key: &'life1 str
- ) -> Pin<Box<dyn Future<Output = Result<i32, DBError>> + Send + 'async_trait>>
+ captcha_key: &'life1 str,
+ ) -> Pin<Box<dyn Future<Output = Result<i32, DBError>> + Send + 'async_trait>>
where 'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait;
fn add_traffic_pattern<'life0, 'life1, 'life2, 'life3, 'async_trait>(
&'life0 self,
- username: &'life1 str,
- captcha_key: &'life2 str,
- pattern: &'life3 TrafficPattern
- ) -> Pin<Box<dyn Future<Output = Result<(), DBError>> + Send + 'async_trait>>
+ username: &'life1 str,
+ captcha_key: &'life2 str,
+ pattern: &'life3 TrafficPattern,
+ ) -> Pin<Box<dyn Future<Output = Result<(), DBError>> + Send + 'async_trait>>
where 'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
@@ -206,325 +208,325 @@
Self: 'async_trait;
fn get_traffic_pattern<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
- username: &'life1 str,
- captcha_key: &'life2 str
- ) -> Pin<Box<dyn Future<Output = Result<TrafficPattern, DBError>> + Send + 'async_trait>>
+ username: &'life1 str,
+ captcha_key: &'life2 str,
+ ) -> Pin<Box<dyn Future<Output = Result<TrafficPattern, DBError>> + Send + 'async_trait>>
where 'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
Self: 'async_trait;
fn get_all_easy_captchas<'life0, 'async_trait>(
&'life0 self,
- limit: usize,
- offset: usize
- ) -> Pin<Box<dyn Future<Output = Result<Vec<EasyCaptcha>, DBError>> + Send + 'async_trait>>
+ limit: usize,
+ offset: usize,
+ ) -> Pin<Box<dyn Future<Output = Result<Vec<EasyCaptcha>, DBError>> + Send + 'async_trait>>
where 'life0: 'async_trait,
Self: 'async_trait;
fn delete_traffic_pattern<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
- username: &'life1 str,
- captcha_key: &'life2 str
- ) -> Pin<Box<dyn Future<Output = Result<(), DBError>> + Send + 'async_trait>>
+ username: &'life1 str,
+ captcha_key: &'life2 str,
+ ) -> Pin<Box<dyn Future<Output = Result<(), DBError>> + Send + 'async_trait>>
where 'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
Self: 'async_trait;
fn create_notification<'life0, 'life1, 'async_trait>(
&'life0 self,
- p: &'life1 AddNotification<'_>
- ) -> Pin<Box<dyn Future<Output = Result<(), DBError>> + Send + 'async_trait>>
+ p: &'life1 AddNotification<'_>,
+ ) -> Pin<Box<dyn Future<Output = Result<(), DBError>> + Send + 'async_trait>>
where 'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait;
fn get_all_unread_notifications<'life0, 'life1, 'async_trait>(
&'life0 self,
- username: &'life1 str
- ) -> Pin<Box<dyn Future<Output = Result<Vec<Notification>, DBError>> + Send + 'async_trait>>
+ username: &'life1 str,
+ ) -> Pin<Box<dyn Future<Output = Result<Vec<Notification>, DBError>> + Send + 'async_trait>>
where 'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait;
fn mark_notification_read<'life0, 'life1, 'async_trait>(
&'life0 self,
- username: &'life1 str,
- id: i32
- ) -> Pin<Box<dyn Future<Output = Result<(), DBError>> + Send + 'async_trait>>
+ username: &'life1 str,
+ id: i32,
+ ) -> Pin<Box<dyn Future<Output = Result<(), DBError>> + Send + 'async_trait>>
where 'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait;
fn record_fetch<'life0, 'life1, 'async_trait>(
&'life0 self,
- key: &'life1 str
- ) -> Pin<Box<dyn Future<Output = Result<(), DBError>> + Send + 'async_trait>>
+ key: &'life1 str,
+ ) -> Pin<Box<dyn Future<Output = Result<(), DBError>> + Send + 'async_trait>>
where 'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait;
fn record_solve<'life0, 'life1, 'async_trait>(
&'life0 self,
- key: &'life1 str
- ) -> Pin<Box<dyn Future<Output = Result<(), DBError>> + Send + 'async_trait>>
+ key: &'life1 str,
+ ) -> Pin<Box<dyn Future<Output = Result<(), DBError>> + Send + 'async_trait>>
where 'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait;
fn record_confirm<'life0, 'life1, 'async_trait>(
&'life0 self,
- key: &'life1 str
- ) -> Pin<Box<dyn Future<Output = Result<(), DBError>> + Send + 'async_trait>>
+ key: &'life1 str,
+ ) -> Pin<Box<dyn Future<Output = Result<(), DBError>> + Send + 'async_trait>>
where 'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait;
fn fetch_config_fetched<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
- user: &'life1 str,
- key: &'life2 str
- ) -> Pin<Box<dyn Future<Output = Result<Vec<i64>, DBError>> + Send + 'async_trait>>
+ user: &'life1 str,
+ key: &'life2 str,
+ ) -> Pin<Box<dyn Future<Output = Result<Vec<i64>, DBError>> + Send + 'async_trait>>
where 'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
Self: 'async_trait;
fn fetch_solve<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
- user: &'life1 str,
- key: &'life2 str
- ) -> Pin<Box<dyn Future<Output = Result<Vec<i64>, DBError>> + Send + 'async_trait>>
+ user: &'life1 str,
+ key: &'life2 str,
+ ) -> Pin<Box<dyn Future<Output = Result<Vec<i64>, DBError>> + Send + 'async_trait>>
where 'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
Self: 'async_trait;
fn fetch_confirm<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
- user: &'life1 str,
- key: &'life2 str
- ) -> Pin<Box<dyn Future<Output = Result<Vec<i64>, DBError>> + Send + 'async_trait>>
+ user: &'life1 str,
+ key: &'life2 str,
+ ) -> Pin<Box<dyn Future<Output = Result<Vec<i64>, DBError>> + Send + 'async_trait>>
where 'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
Self: 'async_trait;
fn analysis_save<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
- captcha_id: &'life1 str,
- d: &'life2 CreatePerformanceAnalytics
- ) -> Pin<Box<dyn Future<Output = Result<(), DBError>> + Send + 'async_trait>>
+ captcha_id: &'life1 str,
+ d: &'life2 CreatePerformanceAnalytics,
+ ) -> Pin<Box<dyn Future<Output = Result<(), DBError>> + Send + 'async_trait>>
where 'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
Self: 'async_trait;
fn analytics_fetch<'life0, 'life1, 'async_trait>(
&'life0 self,
- captcha_id: &'life1 str,
- limit: usize,
- offset: usize
- ) -> Pin<Box<dyn Future<Output = Result<Vec<PerformanceAnalytics>, DBError>> + Send + 'async_trait>>
+ captcha_id: &'life1 str,
+ limit: usize,
+ offset: usize,
+ ) -> Pin<Box<dyn Future<Output = Result<Vec<PerformanceAnalytics>, DBError>> + Send + 'async_trait>>
where 'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait;
fn analytics_create_psuedo_id_if_not_exists<'life0, 'life1, 'async_trait>(
&'life0 self,
- captcha_id: &'life1 str
- ) -> Pin<Box<dyn Future<Output = Result<(), DBError>> + Send + 'async_trait>>
+ captcha_id: &'life1 str,
+ ) -> Pin<Box<dyn Future<Output = Result<(), DBError>> + Send + 'async_trait>>
where 'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait;
fn analytics_get_psuedo_id_from_capmaign_id<'life0, 'life1, 'async_trait>(
&'life0 self,
- captcha_id: &'life1 str
- ) -> Pin<Box<dyn Future<Output = Result<String, DBError>> + Send + 'async_trait>>
+ captcha_id: &'life1 str,
+ ) -> Pin<Box<dyn Future<Output = Result<String, DBError>> + Send + 'async_trait>>
where 'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait;
fn analytics_get_capmaign_id_from_psuedo_id<'life0, 'life1, 'async_trait>(
&'life0 self,
- psuedo_id: &'life1 str
- ) -> Pin<Box<dyn Future<Output = Result<String, DBError>> + Send + 'async_trait>>
+ psuedo_id: &'life1 str,
+ ) -> Pin<Box<dyn Future<Output = Result<String, DBError>> + Send + 'async_trait>>
where 'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait;
fn analytics_delete_all_records_for_campaign<'life0, 'life1, 'async_trait>(
&'life0 self,
- campaign_id: &'life1 str
- ) -> Pin<Box<dyn Future<Output = Result<(), DBError>> + Send + 'async_trait>>
+ campaign_id: &'life1 str,
+ ) -> Pin<Box<dyn Future<Output = Result<(), DBError>> + Send + 'async_trait>>
where 'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait;
fn analytics_get_all_psuedo_ids<'life0, 'async_trait>(
&'life0 self,
- page: usize
- ) -> Pin<Box<dyn Future<Output = Result<Vec<String>, DBError>> + Send + 'async_trait>>
+ page: usize,
+ ) -> Pin<Box<dyn Future<Output = Result<Vec<String>, DBError>> + Send + 'async_trait>>
where 'life0: 'async_trait,
Self: 'async_trait;
fn update_max_nonce_for_level<'life0, 'life1, 'async_trait>(
&'life0 self,
- captcha_key: &'life1 str,
- difficulty_factor: u32,
- latest_nonce: u32
- ) -> Pin<Box<dyn Future<Output = Result<(), DBError>> + Send + 'async_trait>>
+ captcha_key: &'life1 str,
+ difficulty_factor: u32,
+ latest_nonce: u32,
+ ) -> Pin<Box<dyn Future<Output = Result<(), DBError>> + Send + 'async_trait>>
where 'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait;
fn get_max_nonce_for_level<'life0, 'life1, 'async_trait>(
&'life0 self,
- captcha_key: &'life1 str,
- difficulty_factor: u32
- ) -> Pin<Box<dyn Future<Output = Result<u32, DBError>> + Send + 'async_trait>>
+ captcha_key: &'life1 str,
+ difficulty_factor: u32,
+ ) -> Pin<Box<dyn Future<Output = Result<u32, DBError>> + Send + 'async_trait>>
where 'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait;
fn stats_get_num_logs_under_time<'life0, 'async_trait>(
&'life0 self,
- duration: u32
- ) -> Pin<Box<dyn Future<Output = Result<usize, DBError>> + Send + 'async_trait>>
+ duration: u32,
+ ) -> Pin<Box<dyn Future<Output = Result<usize, DBError>> + Send + 'async_trait>>
where 'life0: 'async_trait,
Self: 'async_trait;
fn stats_get_entry_at_location_for_time_limit_asc<'life0, 'async_trait>(
&'life0 self,
- duration: u32,
- location: u32
- ) -> Pin<Box<dyn Future<Output = Result<Option<usize>, DBError>> + Send + 'async_trait>>
+ duration: u32,
+ location: u32,
+ ) -> Pin<Box<dyn Future<Output = Result<Option<usize>, DBError>> + Send + 'async_trait>>
where 'life0: 'async_trait,
Self: 'async_trait;
// Provided method
fn analytics_captcha_is_published<'life0, 'life1, 'async_trait>(
&'life0 self,
- campaign_id: &'life1 str
- ) -> Pin<Box<dyn Future<Output = Result<bool, DBError>> + Send + 'async_trait>>
+ campaign_id: &'life1 str,
+ ) -> Pin<Box<dyn Future<Output = Result<bool, DBError>> + Send + 'async_trait>>
where 'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait { ... }
}
Expand description
mCaptcha’s database requirements. To implement support for $Database, kindly implement this
trait.
Required Methods§
fn ping<'life0, 'async_trait>(
- &'life0 self
-) -> Pin<Box<dyn Future<Output = bool> + Send + 'async_trait>>where
+ &'life0 self,
+) -> Pin<Box<dyn Future<Output = bool> + Send + 'async_trait>>where
'life0: 'async_trait,
Self: 'async_trait,ping DB
fn register<'life0, 'life1, 'async_trait>(
&'life0 self,
- p: &'life1 Register<'_>
-) -> Pin<Box<dyn Future<Output = Result<(), DBError>> + Send + 'async_trait>>where
+ p: &'life1 Register<'_>,
+) -> Pin<Box<dyn Future<Output = Result<(), DBError>> + Send + 'async_trait>>where
'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait,register a new user
fn delete_user<'life0, 'life1, 'async_trait>(
&'life0 self,
- username: &'life1 str
-) -> Pin<Box<dyn Future<Output = Result<(), DBError>> + Send + 'async_trait>>where
+ username: &'life1 str,
+) -> Pin<Box<dyn Future<Output = Result<(), DBError>> + Send + 'async_trait>>where
'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait,delete a user
fn username_exists<'life0, 'life1, 'async_trait>(
&'life0 self,
- username: &'life1 str
-) -> Pin<Box<dyn Future<Output = Result<bool, DBError>> + Send + 'async_trait>>where
+ username: &'life1 str,
+) -> Pin<Box<dyn Future<Output = Result<bool, DBError>> + Send + 'async_trait>>where
'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait,check if username exists
fn get_email<'life0, 'life1, 'async_trait>(
&'life0 self,
- username: &'life1 str
-) -> Pin<Box<dyn Future<Output = Result<Option<String>, DBError>> + Send + 'async_trait>>where
+ username: &'life1 str,
+) -> Pin<Box<dyn Future<Output = Result<Option<String>, DBError>> + Send + 'async_trait>>where
'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait,get user email
fn email_exists<'life0, 'life1, 'async_trait>(
&'life0 self,
- email: &'life1 str
-) -> Pin<Box<dyn Future<Output = Result<bool, DBError>> + Send + 'async_trait>>where
+ email: &'life1 str,
+) -> Pin<Box<dyn Future<Output = Result<bool, DBError>> + Send + 'async_trait>>where
'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait,check if email exists
fn update_email<'life0, 'life1, 'async_trait>(
&'life0 self,
- p: &'life1 UpdateEmail<'_>
-) -> Pin<Box<dyn Future<Output = Result<(), DBError>> + Send + 'async_trait>>where
+ p: &'life1 UpdateEmail<'_>,
+) -> Pin<Box<dyn Future<Output = Result<(), DBError>> + Send + 'async_trait>>where
'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait,update a user’s email
fn get_password<'life0, 'life1, 'async_trait>(
&'life0 self,
- l: &'life1 Login<'_>
-) -> Pin<Box<dyn Future<Output = Result<NameHash, DBError>> + Send + 'async_trait>>where
+ l: &'life1 Login<'_>,
+) -> Pin<Box<dyn Future<Output = Result<NameHash, DBError>> + Send + 'async_trait>>where
'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait,get a user’s password
fn update_password<'life0, 'life1, 'async_trait>(
&'life0 self,
- p: &'life1 NameHash
-) -> Pin<Box<dyn Future<Output = Result<(), DBError>> + Send + 'async_trait>>where
+ p: &'life1 NameHash,
+) -> Pin<Box<dyn Future<Output = Result<(), DBError>> + Send + 'async_trait>>where
'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait,update user’s password
fn update_username<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
- current: &'life1 str,
- new: &'life2 str
-) -> Pin<Box<dyn Future<Output = Result<(), DBError>> + Send + 'async_trait>>where
+ current: &'life1 str,
+ new: &'life2 str,
+) -> Pin<Box<dyn Future<Output = Result<(), DBError>> + Send + 'async_trait>>where
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
Self: 'async_trait,update username
fn get_secret<'life0, 'life1, 'async_trait>(
&'life0 self,
- username: &'life1 str
-) -> Pin<Box<dyn Future<Output = Result<Secret, DBError>> + Send + 'async_trait>>where
+ username: &'life1 str,
+) -> Pin<Box<dyn Future<Output = Result<Secret, DBError>> + Send + 'async_trait>>where
'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait,get a user’s secret
fn get_secret_from_captcha<'life0, 'life1, 'async_trait>(
&'life0 self,
- key: &'life1 str
-) -> Pin<Box<dyn Future<Output = Result<Secret, DBError>> + Send + 'async_trait>>where
+ key: &'life1 str,
+) -> Pin<Box<dyn Future<Output = Result<Secret, DBError>> + Send + 'async_trait>>where
'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait,get a user’s secret from a captcha key
fn update_secret<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
- username: &'life1 str,
- secret: &'life2 str
-) -> Pin<Box<dyn Future<Output = Result<(), DBError>> + Send + 'async_trait>>where
+ username: &'life1 str,
+ secret: &'life2 str,
+) -> Pin<Box<dyn Future<Output = Result<(), DBError>> + Send + 'async_trait>>where
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
Self: 'async_trait,update a user’s secret
fn create_captcha<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
- username: &'life1 str,
- p: &'life2 CreateCaptcha<'_>
-) -> Pin<Box<dyn Future<Output = Result<(), DBError>> + Send + 'async_trait>>where
+ username: &'life1 str,
+ p: &'life2 CreateCaptcha<'_>,
+) -> Pin<Box<dyn Future<Output = Result<(), DBError>> + Send + 'async_trait>>where
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
Self: 'async_trait,create new captcha
fn get_captcha_config<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
- username: &'life1 str,
- key: &'life2 str
-) -> Pin<Box<dyn Future<Output = Result<Captcha, DBError>> + Send + 'async_trait>>where
+ username: &'life1 str,
+ key: &'life2 str,
+) -> Pin<Box<dyn Future<Output = Result<Captcha, DBError>> + Send + 'async_trait>>where
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
Self: 'async_trait,Get captcha config
fn get_all_user_captchas<'life0, 'life1, 'async_trait>(
&'life0 self,
- username: &'life1 str
-) -> Pin<Box<dyn Future<Output = Result<Vec<Captcha>, DBError>> + Send + 'async_trait>>where
+ username: &'life1 str,
+) -> Pin<Box<dyn Future<Output = Result<Vec<Captcha>, DBError>> + Send + 'async_trait>>where
'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait,Get all captchas belonging to user
fn update_captcha_metadata<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
- username: &'life1 str,
- p: &'life2 CreateCaptcha<'_>
-) -> Pin<Box<dyn Future<Output = Result<(), DBError>> + Send + 'async_trait>>where
+ username: &'life1 str,
+ p: &'life2 CreateCaptcha<'_>,
+) -> Pin<Box<dyn Future<Output = Result<(), DBError>> + Send + 'async_trait>>where
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
Self: 'async_trait,update captcha metadata; doesn’t change captcha key
fn update_captcha_key<'life0, 'life1, 'life2, 'life3, 'async_trait>(
&'life0 self,
- username: &'life1 str,
- old_key: &'life2 str,
- new_key: &'life3 str
-) -> Pin<Box<dyn Future<Output = Result<(), DBError>> + Send + 'async_trait>>where
+ username: &'life1 str,
+ old_key: &'life2 str,
+ new_key: &'life3 str,
+) -> Pin<Box<dyn Future<Output = Result<(), DBError>> + Send + 'async_trait>>where
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
@@ -532,10 +534,10 @@ trait.
Self: 'async_trait,update captcha key; doesn’t change metadata
fn add_captcha_levels<'life0, 'life1, 'life2, 'life3, 'async_trait>(
&'life0 self,
- username: &'life1 str,
- captcha_key: &'life2 str,
- levels: &'life3 [Level]
-) -> Pin<Box<dyn Future<Output = Result<(), DBError>> + Send + 'async_trait>>where
+ username: &'life1 str,
+ captcha_key: &'life2 str,
+ levels: &'life3 [Level],
+) -> Pin<Box<dyn Future<Output = Result<(), DBError>> + Send + 'async_trait>>where
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
@@ -543,53 +545,53 @@ trait.
Self: 'async_trait,Add levels to captcha
fn captcha_exists<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
- username: Option<&'life1 str>,
- captcha_key: &'life2 str
-) -> Pin<Box<dyn Future<Output = Result<bool, DBError>> + Send + 'async_trait>>where
+ username: Option<&'life1 str>,
+ captcha_key: &'life2 str,
+) -> Pin<Box<dyn Future<Output = Result<bool, DBError>> + Send + 'async_trait>>where
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
Self: 'async_trait,check if captcha exists
fn delete_captcha_levels<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
- username: &'life1 str,
- captcha_key: &'life2 str
-) -> Pin<Box<dyn Future<Output = Result<(), DBError>> + Send + 'async_trait>>where
+ username: &'life1 str,
+ captcha_key: &'life2 str,
+) -> Pin<Box<dyn Future<Output = Result<(), DBError>> + Send + 'async_trait>>where
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
Self: 'async_trait,Delete all levels of a captcha
fn delete_captcha<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
- username: &'life1 str,
- captcha_key: &'life2 str
-) -> Pin<Box<dyn Future<Output = Result<(), DBError>> + Send + 'async_trait>>where
+ username: &'life1 str,
+ captcha_key: &'life2 str,
+) -> Pin<Box<dyn Future<Output = Result<(), DBError>> + Send + 'async_trait>>where
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
Self: 'async_trait,Delete captcha
fn get_captcha_levels<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
- username: Option<&'life1 str>,
- captcha_key: &'life2 str
-) -> Pin<Box<dyn Future<Output = Result<Vec<Level>, DBError>> + Send + 'async_trait>>where
+ username: Option<&'life1 str>,
+ captcha_key: &'life2 str,
+) -> Pin<Box<dyn Future<Output = Result<Vec<Level>, DBError>> + Send + 'async_trait>>where
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
Self: 'async_trait,Get captcha levels
fn get_captcha_cooldown<'life0, 'life1, 'async_trait>(
&'life0 self,
- captcha_key: &'life1 str
-) -> Pin<Box<dyn Future<Output = Result<i32, DBError>> + Send + 'async_trait>>where
+ captcha_key: &'life1 str,
+) -> Pin<Box<dyn Future<Output = Result<i32, DBError>> + Send + 'async_trait>>where
'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait,Get captcha’s cooldown period
fn add_traffic_pattern<'life0, 'life1, 'life2, 'life3, 'async_trait>(
&'life0 self,
- username: &'life1 str,
- captcha_key: &'life2 str,
- pattern: &'life3 TrafficPattern
-) -> Pin<Box<dyn Future<Output = Result<(), DBError>> + Send + 'async_trait>>where
+ username: &'life1 str,
+ captcha_key: &'life2 str,
+ pattern: &'life3 TrafficPattern,
+) -> Pin<Box<dyn Future<Output = Result<(), DBError>> + Send + 'async_trait>>where
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
@@ -597,187 +599,187 @@ trait.
Self: 'async_trait,Add traffic configuration
fn get_traffic_pattern<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
- username: &'life1 str,
- captcha_key: &'life2 str
-) -> Pin<Box<dyn Future<Output = Result<TrafficPattern, DBError>> + Send + 'async_trait>>where
+ username: &'life1 str,
+ captcha_key: &'life2 str,
+) -> Pin<Box<dyn Future<Output = Result<TrafficPattern, DBError>> + Send + 'async_trait>>where
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
Self: 'async_trait,Get traffic configuration
fn get_all_easy_captchas<'life0, 'async_trait>(
&'life0 self,
- limit: usize,
- offset: usize
-) -> Pin<Box<dyn Future<Output = Result<Vec<EasyCaptcha>, DBError>> + Send + 'async_trait>>where
+ limit: usize,
+ offset: usize,
+) -> Pin<Box<dyn Future<Output = Result<Vec<EasyCaptcha>, DBError>> + Send + 'async_trait>>where
'life0: 'async_trait,
Self: 'async_trait,Get all easy captcha configurations on instance
fn delete_traffic_pattern<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
- username: &'life1 str,
- captcha_key: &'life2 str
-) -> Pin<Box<dyn Future<Output = Result<(), DBError>> + Send + 'async_trait>>where
+ username: &'life1 str,
+ captcha_key: &'life2 str,
+) -> Pin<Box<dyn Future<Output = Result<(), DBError>> + Send + 'async_trait>>where
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
Self: 'async_trait,Delete traffic configuration
fn create_notification<'life0, 'life1, 'async_trait>(
&'life0 self,
- p: &'life1 AddNotification<'_>
-) -> Pin<Box<dyn Future<Output = Result<(), DBError>> + Send + 'async_trait>>where
+ p: &'life1 AddNotification<'_>,
+) -> Pin<Box<dyn Future<Output = Result<(), DBError>> + Send + 'async_trait>>where
'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait,create new notification
fn get_all_unread_notifications<'life0, 'life1, 'async_trait>(
&'life0 self,
- username: &'life1 str
-) -> Pin<Box<dyn Future<Output = Result<Vec<Notification>, DBError>> + Send + 'async_trait>>where
+ username: &'life1 str,
+) -> Pin<Box<dyn Future<Output = Result<Vec<Notification>, DBError>> + Send + 'async_trait>>where
'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait,get all unread notifications
fn mark_notification_read<'life0, 'life1, 'async_trait>(
&'life0 self,
- username: &'life1 str,
- id: i32
-) -> Pin<Box<dyn Future<Output = Result<(), DBError>> + Send + 'async_trait>>where
+ username: &'life1 str,
+ id: i32,
+) -> Pin<Box<dyn Future<Output = Result<(), DBError>> + Send + 'async_trait>>where
'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait,mark a notification read
fn record_fetch<'life0, 'life1, 'async_trait>(
&'life0 self,
- key: &'life1 str
-) -> Pin<Box<dyn Future<Output = Result<(), DBError>> + Send + 'async_trait>>where
+ key: &'life1 str,
+) -> Pin<Box<dyn Future<Output = Result<(), DBError>> + Send + 'async_trait>>where
'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait,record PoWConfig fetches
fn record_solve<'life0, 'life1, 'async_trait>(
&'life0 self,
- key: &'life1 str
-) -> Pin<Box<dyn Future<Output = Result<(), DBError>> + Send + 'async_trait>>where
+ key: &'life1 str,
+) -> Pin<Box<dyn Future<Output = Result<(), DBError>> + Send + 'async_trait>>where
'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait,record PoWConfig solves
fn record_confirm<'life0, 'life1, 'async_trait>(
&'life0 self,
- key: &'life1 str
-) -> Pin<Box<dyn Future<Output = Result<(), DBError>> + Send + 'async_trait>>where
+ key: &'life1 str,
+) -> Pin<Box<dyn Future<Output = Result<(), DBError>> + Send + 'async_trait>>where
'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait,record PoWConfig confirms
fn fetch_config_fetched<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
- user: &'life1 str,
- key: &'life2 str
-) -> Pin<Box<dyn Future<Output = Result<Vec<i64>, DBError>> + Send + 'async_trait>>where
+ user: &'life1 str,
+ key: &'life2 str,
+) -> Pin<Box<dyn Future<Output = Result<Vec<i64>, DBError>> + Send + 'async_trait>>where
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
Self: 'async_trait,fetch PoWConfig fetches
fn fetch_solve<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
- user: &'life1 str,
- key: &'life2 str
-) -> Pin<Box<dyn Future<Output = Result<Vec<i64>, DBError>> + Send + 'async_trait>>where
+ user: &'life1 str,
+ key: &'life2 str,
+) -> Pin<Box<dyn Future<Output = Result<Vec<i64>, DBError>> + Send + 'async_trait>>where
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
Self: 'async_trait,fetch PoWConfig solves
fn fetch_confirm<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
- user: &'life1 str,
- key: &'life2 str
-) -> Pin<Box<dyn Future<Output = Result<Vec<i64>, DBError>> + Send + 'async_trait>>where
+ user: &'life1 str,
+ key: &'life2 str,
+) -> Pin<Box<dyn Future<Output = Result<Vec<i64>, DBError>> + Send + 'async_trait>>where
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
Self: 'async_trait,fetch PoWConfig confirms
fn analysis_save<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
- captcha_id: &'life1 str,
- d: &'life2 CreatePerformanceAnalytics
-) -> Pin<Box<dyn Future<Output = Result<(), DBError>> + Send + 'async_trait>>where
+ captcha_id: &'life1 str,
+ d: &'life2 CreatePerformanceAnalytics,
+) -> Pin<Box<dyn Future<Output = Result<(), DBError>> + Send + 'async_trait>>where
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
Self: 'async_trait,record PoW timing
fn analytics_fetch<'life0, 'life1, 'async_trait>(
&'life0 self,
- captcha_id: &'life1 str,
- limit: usize,
- offset: usize
-) -> Pin<Box<dyn Future<Output = Result<Vec<PerformanceAnalytics>, DBError>> + Send + 'async_trait>>where
+ captcha_id: &'life1 str,
+ limit: usize,
+ offset: usize,
+) -> Pin<Box<dyn Future<Output = Result<Vec<PerformanceAnalytics>, DBError>> + Send + 'async_trait>>where
'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait,fetch PoW analytics
fn analytics_create_psuedo_id_if_not_exists<'life0, 'life1, 'async_trait>(
&'life0 self,
- captcha_id: &'life1 str
-) -> Pin<Box<dyn Future<Output = Result<(), DBError>> + Send + 'async_trait>>where
+ captcha_id: &'life1 str,
+) -> Pin<Box<dyn Future<Output = Result<(), DBError>> + Send + 'async_trait>>where
'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait,Create psuedo ID against campaign ID to publish analytics
fn analytics_get_psuedo_id_from_capmaign_id<'life0, 'life1, 'async_trait>(
&'life0 self,
- captcha_id: &'life1 str
-) -> Pin<Box<dyn Future<Output = Result<String, DBError>> + Send + 'async_trait>>where
+ captcha_id: &'life1 str,
+) -> Pin<Box<dyn Future<Output = Result<String, DBError>> + Send + 'async_trait>>where
'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait,Get psuedo ID from campaign ID
fn analytics_get_capmaign_id_from_psuedo_id<'life0, 'life1, 'async_trait>(
&'life0 self,
- psuedo_id: &'life1 str
-) -> Pin<Box<dyn Future<Output = Result<String, DBError>> + Send + 'async_trait>>where
+ psuedo_id: &'life1 str,
+) -> Pin<Box<dyn Future<Output = Result<String, DBError>> + Send + 'async_trait>>where
'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait,Get campaign ID from psuedo ID
fn analytics_delete_all_records_for_campaign<'life0, 'life1, 'async_trait>(
&'life0 self,
- campaign_id: &'life1 str
-) -> Pin<Box<dyn Future<Output = Result<(), DBError>> + Send + 'async_trait>>where
+ campaign_id: &'life1 str,
+) -> Pin<Box<dyn Future<Output = Result<(), DBError>> + Send + 'async_trait>>where
'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait,Delete all records for campaign
fn analytics_get_all_psuedo_ids<'life0, 'async_trait>(
&'life0 self,
- page: usize
-) -> Pin<Box<dyn Future<Output = Result<Vec<String>, DBError>> + Send + 'async_trait>>where
+ page: usize,
+) -> Pin<Box<dyn Future<Output = Result<Vec<String>, DBError>> + Send + 'async_trait>>where
'life0: 'async_trait,
Self: 'async_trait,Get all psuedo IDs