List of all items
Structs
- AddNotification
- Captcha
- CreateCaptcha
- CreatePerformanceAnalytics
- Level
- NameHash
- Notification
- PerformanceAnalytics
- Register
- Secret
- StatsUnixTimestamp
- TrafficPattern
- UpdateEmail
diff --git a/db_core/all.html b/db_core/all.html index bbcff7c2..0155613f 100644 --- a/db_core/all.html +++ b/db_core/all.html @@ -1 +1 @@ -
#[async_trait]#[async_trait]useful imports for supporting a new database
+useful imports for supporting a new database
pub use super::prelude::*;pub enum Login<'a> {
- Username(&'a str),
- Email(&'a str),
+Login in db_core - Rust pub enum Login<'a> {
+ Username(&'a str),
+ Email(&'a str),
}
Expand description
types of credentials used as identifiers during login
-Variants§
Trait Implementations§
source§impl<'de: 'a, 'a> Deserialize<'de> for Login<'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<Login<'a>> for Login<'a>
source§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> From<T> for T
Variants§
Trait Implementations§
source§impl<'de: 'a, 'a> Deserialize<'de> for Login<'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<Login<'a>> for Login<'a>
source§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> WithSubscriber for T
source§fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>where
- S: Into<Dispatch>,
Attaches the provided Subscriber to this type, returning a
+ 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
diff --git a/db_core/errors/enum.DBError.html b/db_core/errors/enum.DBError.html
index 42c9d866..61c5f475 100644
--- a/db_core/errors/enum.DBError.html
+++ b/db_core/errors/enum.DBError.html
@@ -1,4 +1,4 @@
-DBError in db_core::errors - Rust pub enum DBError {
+DBError in db_core::errors - Rust pub enum DBError {
DBError(BoxDynError),
UsernameTaken,
EmailTaken,
@@ -18,23 +18,23 @@
§CaptchaNotFound
Captcha not found
§TrafficPatternNotFound
Traffic pattern not found
§NotificationNotFound
Notification not found
-
Trait Implementations§
source§impl Error for DBError
source§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> From<T> for T
Trait Implementations§
source§impl Error for DBError
source§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> WithSubscriber for T
source§fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>where
- S: Into<Dispatch>,
Attaches the provided Subscriber to this type, returning a
+ S: Into<Dispatch>,source§fn with_current_subscriber(self) -> WithDispatch<Self>
\ No newline at end of file
diff --git a/db_core/errors/index.html b/db_core/errors/index.html
index 1c1a2160..7d71083d 100644
--- a/db_core/errors/index.html
+++ b/db_core/errors/index.html
@@ -1,2 +1,2 @@
-db_core::errors - Rust Expand description
represents all the ways a trait can fail using this crate
+db_core::errors - Rust Expand description
represents all the ways a trait can fail using this crate
Enums
- Error data structure grouping various error subtypes
Type Definitions
- Convenience type alias for grouping driver-specific errors
- Generic result data structure
\ No newline at end of file
diff --git a/db_core/errors/type.BoxDynError.html b/db_core/errors/type.BoxDynError.html
index 600f8e18..ce8f26cc 100644
--- a/db_core/errors/type.BoxDynError.html
+++ b/db_core/errors/type.BoxDynError.html
@@ -1,2 +1,2 @@
-BoxDynError in db_core::errors - Rust Type Definition db_core::errors::BoxDynError
source · pub type BoxDynError = Box<dyn StdError + Send + Sync + 'static>;
Expand description
Convenience type alias for grouping driver-specific errors
+BoxDynError in db_core::errors - Rust
\ No newline at end of file
diff --git a/db_core/errors/type.DBResult.html b/db_core/errors/type.DBResult.html
index ca6bde80..532c2d84 100644
--- a/db_core/errors/type.DBResult.html
+++ b/db_core/errors/type.DBResult.html
@@ -1,2 +1,2 @@
-DBResult in db_core::errors - Rust pub type DBResult<V> = Result<V, DBError>;
Expand description
Generic result data structure
+DBResult in db_core::errors - Rust
\ No newline at end of file
diff --git a/db_core/index.html b/db_core/index.html
index bc7733a3..6c0dfcfb 100644
--- a/db_core/index.html
+++ b/db_core/index.html
@@ -1,4 +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.
diff --git a/db_core/ops/index.html b/db_core/ops/index.html
index 89a1ab18..cc3a3c56 100644
--- a/db_core/ops/index.html
+++ b/db_core/ops/index.html
@@ -1,2 +1,2 @@
-db_core::ops - Rust Expand description
meta operations like migration and connecting to a database
+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 85338347..4c34358a 100644
--- a/db_core/ops/trait.Connect.html
+++ b/db_core/ops/trait.Connect.html
@@ -1,16 +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>>
+ ) -> 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§
Implementors§
\ No newline at end of file
diff --git a/db_core/ops/trait.DBOps.html b/db_core/ops/trait.DBOps.html
index 38d8d747..895aa85d 100644
--- a/db_core/ops/trait.DBOps.html
+++ b/db_core/ops/trait.DBOps.html
@@ -1,2 +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
\ No newline at end of file
diff --git a/db_core/ops/trait.GetConnection.html b/db_core/ops/trait.GetConnection.html
index ec69b5d2..711f179e 100644
--- a/db_core/ops/trait.GetConnection.html
+++ b/db_core/ops/trait.GetConnection.html
@@ -1,17 +1,17 @@
-GetConnection in db_core::ops - Rust Trait db_core::ops::GetConnection
source · pub trait GetConnection {
+GetConnection in db_core::ops - Rust Trait db_core::ops::GetConnection
source · 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>>
+ ) -> 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
+) -> 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 3af29f8b..7bfb655a 100644
--- a/db_core/ops/trait.Migrate.html
+++ b/db_core/ops/trait.Migrate.html
@@ -1,14 +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>>
+ ) -> 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
+) -> 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 19938b0a..5fc0ffcf 100644
--- a/db_core/prelude/index.html
+++ b/db_core/prelude/index.html
@@ -1,2 +1,2 @@
-db_core::prelude - Rust Expand description
useful imports for users working with a supported database
+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 b00329d4..285c25e8 100644
--- a/db_core/struct.AddNotification.html
+++ b/db_core/struct.AddNotification.html
@@ -1,33 +1,33 @@
-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 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,
}
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<AddNotification<'a>> 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> From<T> for 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 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<AddNotification<'a>> 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> WithSubscriber for T
source§fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>where
- S: Into<Dispatch>,
Attaches the provided Subscriber to this type, returning a
+ 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
diff --git a/db_core/struct.Captcha.html b/db_core/struct.Captcha.html
index 0282ce20..640db701 100644
--- a/db_core/struct.Captcha.html
+++ b/db_core/struct.Captcha.html
@@ -1,33 +1,33 @@
-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<Captcha> 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> From<T> for 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 PartialEq<Captcha> 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> WithSubscriber for T
source§fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>where
- S: Into<Dispatch>,
Attaches the provided Subscriber to this type, returning a
+ 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
diff --git a/db_core/struct.CreateCaptcha.html b/db_core/struct.CreateCaptcha.html
index b55dd8b0..75dfd45a 100644
--- a/db_core/struct.CreateCaptcha.html
+++ b/db_core/struct.CreateCaptcha.html
@@ -1,31 +1,31 @@
-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 Struct db_core::CreateCaptcha
source · 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<CreateCaptcha<'a>> 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> From<T> for 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 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<CreateCaptcha<'a>> 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> WithSubscriber for T
source§fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>where
- S: Into<Dispatch>,
Attaches the provided Subscriber to this type, returning a
+ 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
diff --git a/db_core/struct.CreatePerformanceAnalytics.html b/db_core/struct.CreatePerformanceAnalytics.html
index ff424389..7d90ff24 100644
--- a/db_core/struct.CreatePerformanceAnalytics.html
+++ b/db_core/struct.CreatePerformanceAnalytics.html
@@ -1,31 +1,31 @@
-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 Struct db_core::CreatePerformanceAnalytics
source · 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<CreatePerformanceAnalytics> 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> From<T> for 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 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<CreatePerformanceAnalytics> 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> WithSubscriber for T
source§fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>where
- S: Into<Dispatch>,
Attaches the provided Subscriber to this type, returning a
+ 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
diff --git a/db_core/struct.Level.html b/db_core/struct.Level.html
index 22f9d4a5..7a60e6da 100644
--- a/db_core/struct.Level.html
+++ b/db_core/struct.Level.html
@@ -1,32 +1,32 @@
-Level in db_core - Rust pub struct Level {
- pub visitor_threshold: u32,
- pub difficulty_factor: u32,
+Level in db_core - Rust 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>(
+
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 more§impl PartialEq<Level> for Level
§fn eq(&self, other: &Level) -> bool
This method tests for self and other values to be equal, and is used
-by ==.1.0.0 · source§fn ne(&self, other: &Rhs) -> bool
This method tests for !=. The default implementation is almost always
+) -> 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> From<T> for T
const: unstable · source§fn from(t: T) -> T
Returns the argument unchanged.
+) -> 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> WithSubscriber for T
source§fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>where
- S: Into<Dispatch>,
Attaches the provided Subscriber to this type, returning a
+ 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
diff --git a/db_core/struct.NameHash.html b/db_core/struct.NameHash.html
index 19295c9a..14f1d4bc 100644
--- a/db_core/struct.NameHash.html
+++ b/db_core/struct.NameHash.html
@@ -1,29 +1,29 @@
-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<NameHash> 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> From<T> for 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 PartialEq<NameHash> 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> WithSubscriber for T
source§fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>where
- S: Into<Dispatch>,
Attaches the provided Subscriber to this type, returning a
+ 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
diff --git a/db_core/struct.Notification.html b/db_core/struct.Notification.html
index bb022a02..3a72e32c 100644
--- a/db_core/struct.Notification.html
+++ b/db_core/struct.Notification.html
@@ -1,35 +1,35 @@
-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 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>,
}
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<Notification> 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> From<T> for 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 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<Notification> 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> WithSubscriber for T
source§fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>where
- S: Into<Dispatch>,
Attaches the provided Subscriber to this type, returning a
+ 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
diff --git a/db_core/struct.PerformanceAnalytics.html b/db_core/struct.PerformanceAnalytics.html
index 391663ea..4c2700ab 100644
--- a/db_core/struct.PerformanceAnalytics.html
+++ b/db_core/struct.PerformanceAnalytics.html
@@ -1,33 +1,33 @@
-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 Struct db_core::PerformanceAnalytics
source · 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<PerformanceAnalytics> 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> From<T> for 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 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<PerformanceAnalytics> 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> WithSubscriber for T
source§fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>where
- S: Into<Dispatch>,
Attaches the provided Subscriber to this type, returning a
+ 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
diff --git a/db_core/struct.Register.html b/db_core/struct.Register.html
index 3826d7bf..45fcf7b4 100644
--- a/db_core/struct.Register.html
+++ b/db_core/struct.Register.html
@@ -1,33 +1,33 @@
-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<Register<'a>> 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> From<T> for 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> PartialEq<Register<'a>> 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> WithSubscriber for T
source§fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>where
- S: Into<Dispatch>,
Attaches the provided Subscriber to this type, returning a
+ 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
diff --git a/db_core/struct.Secret.html b/db_core/struct.Secret.html
index 3862df15..89552e21 100644
--- a/db_core/struct.Secret.html
+++ b/db_core/struct.Secret.html
@@ -1,27 +1,27 @@
-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<Secret> 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> From<T> for 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 PartialEq<Secret> 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> WithSubscriber for T
source§fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>where
- S: Into<Dispatch>,
Attaches the provided Subscriber to this type, returning a
+ 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
diff --git a/db_core/struct.StatsUnixTimestamp.html b/db_core/struct.StatsUnixTimestamp.html
index fb9cd7b9..60a6cb26 100644
--- a/db_core/struct.StatsUnixTimestamp.html
+++ b/db_core/struct.StatsUnixTimestamp.html
@@ -1,31 +1,31 @@
-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 Struct db_core::StatsUnixTimestamp
source · 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<StatsUnixTimestamp> 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> From<T> for 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 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<StatsUnixTimestamp> 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> WithSubscriber for T
source§fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>where
- S: Into<Dispatch>,
Attaches the provided Subscriber to this type, returning a
+ 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
diff --git a/db_core/struct.TrafficPattern.html b/db_core/struct.TrafficPattern.html
index 976b070c..247d96d0 100644
--- a/db_core/struct.TrafficPattern.html
+++ b/db_core/struct.TrafficPattern.html
@@ -1,31 +1,31 @@
-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 Struct db_core::TrafficPattern
source · 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<TrafficPattern> 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> From<T> for 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 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<TrafficPattern> 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> WithSubscriber for T
source§fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>where
- S: Into<Dispatch>,
Attaches the provided Subscriber to this type, returning a
+ 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
diff --git a/db_core/struct.UpdateEmail.html b/db_core/struct.UpdateEmail.html
index 9345245e..1bcadb96 100644
--- a/db_core/struct.UpdateEmail.html
+++ b/db_core/struct.UpdateEmail.html
@@ -1,29 +1,29 @@
-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 Struct db_core::UpdateEmail
source · pub struct UpdateEmail<'a> {
+ pub username: &'a str,
+ pub new_email: &'a str,
}
Expand description
data required to update them email of a user
-Fields§
§username: &'a 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<UpdateEmail<'a>> 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> From<T> for 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 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<UpdateEmail<'a>> 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> WithSubscriber for T
source§fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>where
- S: Into<Dispatch>,
Attaches the provided Subscriber to this type, returning a
+ 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
diff --git a/db_core/tests/fn.database_works.html b/db_core/tests/fn.database_works.html
index 2bbaff26..799963bb 100644
--- a/db_core/tests/fn.database_works.html
+++ b/db_core/tests/fn.database_works.html
@@ -1,5 +1,5 @@
-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 Function db_core::tests::database_works
source · pub async fn database_works<'a, T: MCDatabase>(
+ db: &T,
p: &Register<'a>,
c: &CreateCaptcha<'a>,
l: &[Level],
diff --git a/db_core/tests/index.html b/db_core/tests/index.html
index e78f08ef..46f15ac6 100644
--- a/db_core/tests/index.html
+++ b/db_core/tests/index.html
@@ -1,2 +1,2 @@
-db_core::tests - Rust Expand description
Test utilities
+db_core::tests - Rust Expand description
Test utilities
Functions
- 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 6fb7acc7..04804484 100644
--- a/db_core/trait.CloneSPDatabase.html
+++ b/db_core/trait.CloneSPDatabase.html
@@ -1,7 +1,7 @@
-CloneSPDatabase in db_core - Rust Trait db_core::CloneSPDatabase
source · pub trait CloneSPDatabase {
+CloneSPDatabase in db_core - Rust Trait db_core::CloneSPDatabase
source · 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
+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
+ 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 bff6e4d5..29951944 100644
--- a/db_core/trait.MCDatabase.html
+++ b/db_core/trait.MCDatabase.html
@@ -1,138 +1,138 @@
-MCDatabase in db_core - Rust Trait db_core::MCDatabase
source · pub trait MCDatabase: Send + Sync + CloneSPDatabase {
+MCDatabase in db_core - Rust Trait db_core::MCDatabase
source · pub trait MCDatabase: Send + Sync + CloneSPDatabase {
Show 43 methods
// Required methods
fn ping<'life0, 'async_trait>(
&'life0 self
- ) -> Pin<Box<dyn Future<Output = bool> + Send + 'async_trait>>
+ ) -> 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>>
+ ) -> 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>>
+ ) -> 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>>
+ ) -> 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>>
+ ) -> 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,
+ username: &'life1 str,
p: &'life2 CreateCaptcha<'_>
- ) -> Pin<Box<dyn Future<Output = DBResult<()>> + Send + 'async_trait>>
+ ) -> 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,
+ username: &'life1 str,
p: &'life2 CreateCaptcha<'_>
- ) -> Pin<Box<dyn Future<Output = DBResult<()>> + Send + 'async_trait>>
+ ) -> 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,
@@ -140,10 +140,10 @@
'life3: 'async_trait;
fn add_captcha_levels<'life0, 'life1, 'life2, 'life3, 'async_trait>(
&'life0 self,
- username: &'life1 str,
- captcha_key: &'life2 str,
+ username: &'life1 str,
+ captcha_key: &'life2 str,
levels: &'life3 [Level]
- ) -> Pin<Box<dyn Future<Output = DBResult<()>> + Send + 'async_trait>>
+ ) -> Pin<Box<dyn Future<Output = DBResult<()>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
@@ -151,53 +151,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,
+ username: &'life1 str,
+ captcha_key: &'life2 str,
pattern: &'life3 TrafficPattern
- ) -> Pin<Box<dyn Future<Output = DBResult<()>> + Send + 'async_trait>>
+ ) -> Pin<Box<dyn Future<Output = DBResult<()>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
@@ -205,18 +205,18 @@
'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 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,
@@ -224,116 +224,116 @@
fn create_notification<'life0, 'life1, 'async_trait>(
&'life0 self,
p: &'life1 AddNotification<'_>
- ) -> Pin<Box<dyn Future<Output = DBResult<()>> + Send + 'async_trait>>
+ ) -> 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,
+ captcha_id: &'life1 str,
d: &'life2 CreatePerformanceAnalytics
- ) -> Pin<Box<dyn Future<Output = DBResult<()>> + Send + 'async_trait>>
+ ) -> 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;
@@ -341,8 +341,8 @@
// 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 { ... }
@@ -350,137 +350,137 @@
trait.
Required Methods§
sourcefn ping<'life0, 'async_trait>(
&'life0 self
-) -> Pin<Box<dyn Future<Output = bool> + Send + 'async_trait>>where
+) -> Pin<Box<dyn Future<Output = bool> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
ping DB
sourcefn register<'life0, 'life1, 'async_trait>(
&'life0 self,
p: &'life1 Register<'_>
-) -> Pin<Box<dyn Future<Output = DBResult<()>> + Send + 'async_trait>>where
+) -> Pin<Box<dyn Future<Output = DBResult<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
register a new user
sourcefn delete_user<'life0, 'life1, 'async_trait>(
&'life0 self,
- username: &'life1 str
-) -> Pin<Box<dyn Future<Output = DBResult<()>> + Send + 'async_trait>>where
+ username: &'life1 str
+) -> Pin<Box<dyn Future<Output = DBResult<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
delete a user
sourcefn username_exists<'life0, 'life1, 'async_trait>(
&'life0 self,
- username: &'life1 str
-) -> Pin<Box<dyn Future<Output = DBResult<bool>> + Send + 'async_trait>>where
+ username: &'life1 str
+) -> Pin<Box<dyn Future<Output = DBResult<bool>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
check if username exists
sourcefn get_email<'life0, 'life1, 'async_trait>(
&'life0 self,
- username: &'life1 str
-) -> Pin<Box<dyn Future<Output = DBResult<Option<String>>> + Send + 'async_trait>>where
+ username: &'life1 str
+) -> Pin<Box<dyn Future<Output = DBResult<Option<String>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
get user email
sourcefn email_exists<'life0, 'life1, 'async_trait>(
&'life0 self,
- email: &'life1 str
-) -> Pin<Box<dyn Future<Output = DBResult<bool>> + Send + 'async_trait>>where
+ email: &'life1 str
+) -> Pin<Box<dyn Future<Output = DBResult<bool>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
check if email exists
sourcefn update_email<'life0, 'life1, 'async_trait>(
&'life0 self,
p: &'life1 UpdateEmail<'_>
-) -> Pin<Box<dyn Future<Output = DBResult<()>> + Send + 'async_trait>>where
+) -> 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>(
&'life0 self,
l: &'life1 Login<'_>
-) -> Pin<Box<dyn Future<Output = DBResult<NameHash>> + Send + 'async_trait>>where
+) -> Pin<Box<dyn Future<Output = DBResult<NameHash>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
get a user’s password
sourcefn update_password<'life0, 'life1, 'async_trait>(
&'life0 self,
p: &'life1 NameHash
-) -> Pin<Box<dyn Future<Output = DBResult<()>> + Send + 'async_trait>>where
+) -> Pin<Box<dyn Future<Output = DBResult<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
update user’s password
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>>where
+ 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,
update username
sourcefn get_secret<'life0, 'life1, 'async_trait>(
&'life0 self,
- username: &'life1 str
-) -> Pin<Box<dyn Future<Output = DBResult<Secret>> + Send + 'async_trait>>where
+ username: &'life1 str
+) -> Pin<Box<dyn Future<Output = DBResult<Secret>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
get a user’s secret
sourcefn get_secret_from_captcha<'life0, 'life1, 'async_trait>(
&'life0 self,
- key: &'life1 str
-) -> Pin<Box<dyn Future<Output = DBResult<Secret>> + Send + 'async_trait>>where
+ key: &'life1 str
+) -> Pin<Box<dyn Future<Output = DBResult<Secret>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
get a user’s secret from a captcha key
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>(
&'life0 self,
- username: &'life1 str,
+ username: &'life1 str,
p: &'life2 CreateCaptcha<'_>
-) -> Pin<Box<dyn Future<Output = DBResult<()>> + Send + 'async_trait>>where
+) -> 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>(
&'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>(
&'life0 self,
- username: &'life1 str
-) -> Pin<Box<dyn Future<Output = DBResult<Vec<Captcha>>> + Send + 'async_trait>>where
+ username: &'life1 str
+) -> Pin<Box<dyn Future<Output = DBResult<Vec<Captcha>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Get all captchas belonging to user
sourcefn update_captcha_metadata<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
- username: &'life1 str,
+ username: &'life1 str,
p: &'life2 CreateCaptcha<'_>
-) -> Pin<Box<dyn Future<Output = DBResult<()>> + Send + 'async_trait>>where
+) -> 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>(
&'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,
@@ -488,10 +488,10 @@ trait.
'life3: 'async_trait,
update captcha key; doesn’t change metadata
sourcefn add_captcha_levels<'life0, 'life1, 'life2, 'life3, 'async_trait>(
&'life0 self,
- username: &'life1 str,
- captcha_key: &'life2 str,
+ username: &'life1 str,
+ captcha_key: &'life2 str,
levels: &'life3 [Level]
-) -> Pin<Box<dyn Future<Output = DBResult<()>> + Send + 'async_trait>>where
+) -> Pin<Box<dyn Future<Output = DBResult<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
@@ -499,53 +499,53 @@ trait.
'life3: 'async_trait,
Add levels to captcha
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>(
&'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>(
&'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>(
&'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>(
&'life0 self,
- captcha_key: &'life1 str
-) -> Pin<Box<dyn Future<Output = DBResult<i32>> + Send + 'async_trait>>where
+ captcha_key: &'life1 str
+) -> Pin<Box<dyn Future<Output = DBResult<i32>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Get captcha’s cooldown period
sourcefn add_traffic_pattern<'life0, 'life1, 'life2, 'life3, 'async_trait>(
&'life0 self,
- username: &'life1 str,
- captcha_key: &'life2 str,
+ username: &'life1 str,
+ captcha_key: &'life2 str,
pattern: &'life3 TrafficPattern
-) -> Pin<Box<dyn Future<Output = DBResult<()>> + Send + 'async_trait>>where
+) -> Pin<Box<dyn Future<Output = DBResult<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
@@ -553,18 +553,18 @@ trait.
'life3: 'async_trait,
Add traffic configuration
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 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,
@@ -572,124 +572,124 @@ trait.
sourcefn create_notification<'life0, 'life1, 'async_trait>(
&'life0 self,
p: &'life1 AddNotification<'_>
-) -> Pin<Box<dyn Future<Output = DBResult<()>> + Send + 'async_trait>>where
+) -> 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>(
&'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>(
&'life0 self,
- username: &'life1 str,
- id: i32
-) -> Pin<Box<dyn Future<Output = DBResult<()>> + Send + 'async_trait>>where
+ username: &'life1 str,
+ id: i32
+) -> Pin<Box<dyn Future<Output = DBResult<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
mark a notification read
sourcefn record_fetch<'life0, 'life1, 'async_trait>(
&'life0 self,
- key: &'life1 str
-) -> Pin<Box<dyn Future<Output = DBResult<()>> + Send + 'async_trait>>where
+ key: &'life1 str
+) -> Pin<Box<dyn Future<Output = DBResult<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
record PoWConfig fetches
sourcefn record_solve<'life0, 'life1, 'async_trait>(
&'life0 self,
- key: &'life1 str
-) -> Pin<Box<dyn Future<Output = DBResult<()>> + Send + 'async_trait>>where
+ key: &'life1 str
+) -> Pin<Box<dyn Future<Output = DBResult<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
record PoWConfig solves
sourcefn record_confirm<'life0, 'life1, 'async_trait>(
&'life0 self,
- key: &'life1 str
-) -> Pin<Box<dyn Future<Output = DBResult<()>> + Send + 'async_trait>>where
+ key: &'life1 str
+) -> Pin<Box<dyn Future<Output = DBResult<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
record PoWConfig confirms
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>(
&'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>(
&'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>(
&'life0 self,
- captcha_id: &'life1 str,
+ captcha_id: &'life1 str,
d: &'life2 CreatePerformanceAnalytics
-) -> Pin<Box<dyn Future<Output = DBResult<()>> + Send + 'async_trait>>where
+) -> 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>(
&'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>(
&'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>(
&'life0 self,
- captcha_id: &'life1 str
-) -> Pin<Box<dyn Future<Output = DBResult<String>> + Send + 'async_trait>>where
+ captcha_id: &'life1 str
+) -> Pin<Box<dyn Future<Output = DBResult<String>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Get psuedo ID from campaign ID
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>>where
+ psuedo_id: &'life1 str
+) -> Pin<Box<dyn Future<Output = DBResult<String>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Get campaign ID from psuedo ID
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>>where
+ campaign_id: &'life1 str
+) -> Pin<Box<dyn Future<Output = DBResult<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Delete all records for campaign
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 59a12ca7..0f559f9f 100644
--- a/db_sqlx_maria/all.html
+++ b/db_sqlx_maria/all.html
@@ -1 +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::Level
- dev::NameHash
- dev::Notification
- dev::PerformanceAnalytics
- dev::Register
- dev::Secret
- dev::StatsUnixTimestamp
- dev::TrafficPattern
- dev::UpdateEmail
- dev::dev::AddNotification
- dev::dev::Captcha
- dev::dev::CreateCaptcha
- dev::dev::CreatePerformanceAnalytics
- dev::dev::Level
- dev::dev::NameHash
- dev::dev::Notification
- dev::dev::PerformanceAnalytics
- dev::dev::Register
- dev::dev::Secret
- dev::dev::StatsUnixTimestamp
- dev::dev::TrafficPattern
- dev::dev::UpdateEmail
- dev::dev::prelude::AddNotification
- dev::dev::prelude::Captcha
- dev::dev::prelude::CreateCaptcha
- dev::dev::prelude::CreatePerformanceAnalytics
- dev::dev::prelude::Level
- dev::dev::prelude::NameHash
- dev::dev::prelude::Notification
- dev::dev::prelude::PerformanceAnalytics
- dev::dev::prelude::Register
- dev::dev::prelude::Secret
- dev::dev::prelude::StatsUnixTimestamp
- dev::dev::prelude::TrafficPattern
- dev::dev::prelude::UpdateEmail
- dev::prelude::AddNotification
- dev::prelude::Captcha
- dev::prelude::CreateCaptcha
- dev::prelude::CreatePerformanceAnalytics
- 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::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
- prelude::AddNotification
- prelude::Captcha
- prelude::CreateCaptcha
- prelude::CreatePerformanceAnalytics
- prelude::Level
- prelude::NameHash
- prelude::Notification
- prelude::PerformanceAnalytics
- prelude::Register
- prelude::Secret
- prelude::StatsUnixTimestamp
- prelude::TrafficPattern
- prelude::UpdateEmail
Enums
- ConnectionOptions
- dev::DBError
- dev::Error
- dev::Login
- dev::dev::DBError
- dev::dev::Login
- dev::dev::errors::DBError
- dev::dev::prelude::DBError
- dev::dev::prelude::Login
- dev::errors::DBError
- dev::prelude::DBError
- dev::prelude::Login
- dev::prelude::dev::DBError
- dev::prelude::dev::Login
- prelude::DBError
- prelude::Login
Traits
- dev::CloneSPDatabase
- dev::Connect
- dev::DBOps
- dev::GetConnection
- dev::MCDatabase
- dev::Migrate
- dev::dev::CloneSPDatabase
- dev::dev::Connect
- dev::dev::DBOps
- dev::dev::GetConnection
- dev::dev::MCDatabase
- dev::dev::Migrate
- dev::dev::ops::Connect
- dev::dev::ops::DBOps
- dev::dev::ops::GetConnection
- dev::dev::ops::Migrate
- dev::dev::prelude::CloneSPDatabase
- dev::dev::prelude::Connect
- dev::dev::prelude::DBOps
- dev::dev::prelude::GetConnection
- dev::dev::prelude::MCDatabase
- dev::dev::prelude::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
- prelude::CloneSPDatabase
- prelude::Connect
- prelude::DBOps
- prelude::GetConnection
- prelude::MCDatabase
- prelude::Migrate
- prelude::ops::Connect
- prelude::ops::DBOps
- prelude::ops::GetConnection
- prelude::ops::Migrate
Attribute Macros
Functions
- dev::dev::tests::database_works
- dev::tests::database_works
- errors::map_register_err
- errors::map_row_not_found_err
- prelude::tests::database_works
Type Definitions
- dev::BoxDynError
- dev::DBResult
- dev::dev::BoxDynError
- dev::dev::DBResult
- dev::dev::errors::BoxDynError
- dev::dev::errors::DBResult
- dev::dev::prelude::BoxDynError
- dev::dev::prelude::DBResult
- dev::errors::BoxDynError
- dev::errors::DBResult
- dev::prelude::BoxDynError
- dev::prelude::DBResult
- dev::prelude::dev::BoxDynError
- dev::prelude::dev::DBResult
- prelude::BoxDynError
- prelude::DBResult
\ 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::Level
- dev::NameHash
- dev::Notification
- dev::PerformanceAnalytics
- dev::Register
- dev::Secret
- dev::StatsUnixTimestamp
- dev::TrafficPattern
- dev::UpdateEmail
- dev::dev::AddNotification
- dev::dev::Captcha
- dev::dev::CreateCaptcha
- dev::dev::CreatePerformanceAnalytics
- dev::dev::Level
- dev::dev::NameHash
- dev::dev::Notification
- dev::dev::PerformanceAnalytics
- dev::dev::Register
- dev::dev::Secret
- dev::dev::StatsUnixTimestamp
- dev::dev::TrafficPattern
- dev::dev::UpdateEmail
- dev::dev::prelude::AddNotification
- dev::dev::prelude::Captcha
- dev::dev::prelude::CreateCaptcha
- dev::dev::prelude::CreatePerformanceAnalytics
- dev::dev::prelude::Level
- dev::dev::prelude::NameHash
- dev::dev::prelude::Notification
- dev::dev::prelude::PerformanceAnalytics
- dev::dev::prelude::Register
- dev::dev::prelude::Secret
- dev::dev::prelude::StatsUnixTimestamp
- dev::dev::prelude::TrafficPattern
- dev::dev::prelude::UpdateEmail
- dev::prelude::AddNotification
- dev::prelude::Captcha
- dev::prelude::CreateCaptcha
- dev::prelude::CreatePerformanceAnalytics
- 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::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
- prelude::AddNotification
- prelude::Captcha
- prelude::CreateCaptcha
- prelude::CreatePerformanceAnalytics
- prelude::Level
- prelude::NameHash
- prelude::Notification
- prelude::PerformanceAnalytics
- prelude::Register
- prelude::Secret
- prelude::StatsUnixTimestamp
- prelude::TrafficPattern
- prelude::UpdateEmail
Enums
- ConnectionOptions
- dev::DBError
- dev::Error
- dev::Login
- dev::dev::DBError
- dev::dev::Login
- dev::dev::errors::DBError
- dev::dev::prelude::DBError
- dev::dev::prelude::Login
- dev::errors::DBError
- dev::prelude::DBError
- dev::prelude::Login
- dev::prelude::dev::DBError
- dev::prelude::dev::Login
- prelude::DBError
- prelude::Login
Traits
- dev::CloneSPDatabase
- dev::Connect
- dev::DBOps
- dev::GetConnection
- dev::MCDatabase
- dev::Migrate
- dev::dev::CloneSPDatabase
- dev::dev::Connect
- dev::dev::DBOps
- dev::dev::GetConnection
- dev::dev::MCDatabase
- dev::dev::Migrate
- dev::dev::ops::Connect
- dev::dev::ops::DBOps
- dev::dev::ops::GetConnection
- dev::dev::ops::Migrate
- dev::dev::prelude::CloneSPDatabase
- dev::dev::prelude::Connect
- dev::dev::prelude::DBOps
- dev::dev::prelude::GetConnection
- dev::dev::prelude::MCDatabase
- dev::dev::prelude::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
- prelude::CloneSPDatabase
- prelude::Connect
- prelude::DBOps
- prelude::GetConnection
- prelude::MCDatabase
- prelude::Migrate
- prelude::ops::Connect
- prelude::ops::DBOps
- prelude::ops::GetConnection
- prelude::ops::Migrate
Attribute Macros
Functions
- dev::dev::tests::database_works
- dev::tests::database_works
- errors::map_register_err
- errors::map_row_not_found_err
- prelude::tests::database_works
Type Definitions
- dev::BoxDynError
- dev::DBResult
- dev::dev::BoxDynError
- dev::dev::DBResult
- dev::dev::errors::BoxDynError
- dev::dev::errors::DBResult
- dev::dev::prelude::BoxDynError
- dev::dev::prelude::DBResult
- dev::errors::BoxDynError
- dev::errors::DBResult
- dev::prelude::BoxDynError
- dev::prelude::DBResult
- dev::prelude::dev::BoxDynError
- dev::prelude::dev::DBResult
- prelude::BoxDynError
- prelude::DBResult
\ 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 442f0a81..3b4f322b 100644
--- a/db_sqlx_maria/dev/attr.async_trait.html
+++ b/db_sqlx_maria/dev/attr.async_trait.html
@@ -1 +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 Attribute Macro db_sqlx_maria::dev::async_trait
#[async_trait]
\ No newline at end of file
diff --git a/db_sqlx_maria/dev/dev/attr.async_trait.html b/db_sqlx_maria/dev/dev/attr.async_trait.html
index cec14724..c5e65d36 100644
--- a/db_sqlx_maria/dev/dev/attr.async_trait.html
+++ b/db_sqlx_maria/dev/dev/attr.async_trait.html
@@ -1 +1 @@
-async_trait in db_sqlx_maria::dev::dev - Rust Attribute Macro db_sqlx_maria::dev::dev::async_trait
#[async_trait]
\ No newline at end of file
+async_trait in db_sqlx_maria::dev::dev - Rust Attribute Macro db_sqlx_maria::dev::dev::async_trait
#[async_trait]
\ No newline at end of file
diff --git a/db_sqlx_maria/dev/dev/enum.DBError.html b/db_sqlx_maria/dev/dev/enum.DBError.html
index ee6c7c06..b0b39a44 100644
--- a/db_sqlx_maria/dev/dev/enum.DBError.html
+++ b/db_sqlx_maria/dev/dev/enum.DBError.html
@@ -1,5 +1,5 @@
-DBError in db_sqlx_maria::dev::dev - Rust Enum db_sqlx_maria::dev::dev::DBError
pub enum DBError {
- DBError(Box<dyn Error + Send + Sync + 'static, Global>),
+DBError in db_sqlx_maria::dev::dev - Rust Enum db_sqlx_maria::dev::dev::DBError
pub enum DBError {
+ DBError(Box<dyn Error + Send + Sync + 'static, Global>),
UsernameTaken,
EmailTaken,
SecretTaken,
@@ -9,7 +9,7 @@
TrafficPatternNotFound,
NotificationNotFound,
}
Expand description
Error data structure grouping various error subtypes
-Variants§
§DBError(Box<dyn Error + Send + Sync + 'static, Global>)
errors that are specific to a database implementation
+Variants§
§DBError(Box<dyn Error + Send + Sync + 'static, Global>)
errors that are specific to a database implementation
§UsernameTaken
Username is taken
§EmailTaken
Email is taken
§SecretTaken
Secret is taken
@@ -18,23 +18,23 @@
§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> From<T> for T
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> WithSubscriber for T
source§fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>where
- S: Into<Dispatch>,
Attaches the provided Subscriber to this type, returning a
+ S: Into<Dispatch>,source§fn with_current_subscriber(self) -> WithDispatch<Self>
\ No newline at end of file
diff --git a/db_sqlx_maria/dev/dev/enum.Login.html b/db_sqlx_maria/dev/dev/enum.Login.html
index 15a3764e..9aa406ad 100644
--- a/db_sqlx_maria/dev/dev/enum.Login.html
+++ b/db_sqlx_maria/dev/dev/enum.Login.html
@@ -1,35 +1,35 @@
-Login in db_sqlx_maria::dev::dev - Rust Enum db_sqlx_maria::dev::dev::Login
pub enum Login<'a> {
- Username(&'a str),
- Email(&'a str),
+Login in db_sqlx_maria::dev::dev - Rust Enum db_sqlx_maria::dev::dev::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
+
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<Login<'a>> for Login<'a>
§fn eq(&self, other: &Login<'a>) -> bool
This method tests for self and other values to be equal, and is used
-by ==.1.0.0 · source§fn ne(&self, other: &Rhs) -> bool
This method tests for !=. The default implementation is almost always
+) -> 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<Login<'a>> for Login<'a>
§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> From<T> for T
const: unstable · source§fn from(t: T) -> T
Returns the argument unchanged.
+) -> 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> WithSubscriber for T
source§fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>where
- S: Into<Dispatch>,
Attaches the provided Subscriber to this type, returning a
+ 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
diff --git a/db_sqlx_maria/dev/dev/errors/enum.DBError.html b/db_sqlx_maria/dev/dev/errors/enum.DBError.html
index cfc23ec2..eeb45679 100644
--- a/db_sqlx_maria/dev/dev/errors/enum.DBError.html
+++ b/db_sqlx_maria/dev/dev/errors/enum.DBError.html
@@ -1,5 +1,5 @@
-DBError in db_sqlx_maria::dev::dev::errors - Rust Enum db_sqlx_maria::dev::dev::errors::DBError
pub enum DBError {
- DBError(Box<dyn Error + Send + Sync + 'static, Global>),
+DBError in db_sqlx_maria::dev::dev::errors - Rust Enum db_sqlx_maria::dev::dev::errors::DBError
pub enum DBError {
+ DBError(Box<dyn Error + Send + Sync + 'static, Global>),
UsernameTaken,
EmailTaken,
SecretTaken,
@@ -9,7 +9,7 @@
TrafficPatternNotFound,
NotificationNotFound,
}
Expand description
Error data structure grouping various error subtypes
-Variants§
§DBError(Box<dyn Error + Send + Sync + 'static, Global>)
errors that are specific to a database implementation
+Variants§
§DBError(Box<dyn Error + Send + Sync + 'static, Global>)
errors that are specific to a database implementation
§UsernameTaken
Username is taken
§EmailTaken
Email is taken
§SecretTaken
Secret is taken
@@ -18,23 +18,23 @@
§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> From<T> for T
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> WithSubscriber for T
source§fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>where
- S: Into<Dispatch>,
Attaches the provided Subscriber to this type, returning a
+ S: Into<Dispatch>,source§fn with_current_subscriber(self) -> WithDispatch<Self>
\ No newline at end of file
diff --git a/db_sqlx_maria/dev/dev/errors/index.html b/db_sqlx_maria/dev/dev/errors/index.html
index 9a898f74..04e085e5 100644
--- a/db_sqlx_maria/dev/dev/errors/index.html
+++ b/db_sqlx_maria/dev/dev/errors/index.html
@@ -1,2 +1,2 @@
-db_sqlx_maria::dev::dev::errors - Rust Module db_sqlx_maria::dev::dev::errors
Expand description
represents all the ways a trait can fail using this crate
+db_sqlx_maria::dev::dev::errors - Rust Module db_sqlx_maria::dev::dev::errors
Expand description
represents all the ways a trait can fail using this crate
Enums
- Error data structure grouping various error subtypes
Type Definitions
- Convenience type alias for grouping driver-specific errors
- Generic result data structure
\ No newline at end of file
diff --git a/db_sqlx_maria/dev/dev/errors/type.BoxDynError.html b/db_sqlx_maria/dev/dev/errors/type.BoxDynError.html
index 1082c317..f8cc8922 100644
--- a/db_sqlx_maria/dev/dev/errors/type.BoxDynError.html
+++ b/db_sqlx_maria/dev/dev/errors/type.BoxDynError.html
@@ -1,2 +1,2 @@
-BoxDynError in db_sqlx_maria::dev::dev::errors - Rust Type Definition db_sqlx_maria::dev::dev::errors::BoxDynError
pub type BoxDynError = Box<dyn Error + Send + Sync + 'static, Global>;
Expand description
Convenience type alias for grouping driver-specific errors
+BoxDynError in db_sqlx_maria::dev::dev::errors - Rust Type Definition db_sqlx_maria::dev::dev::errors::BoxDynError
pub type BoxDynError = Box<dyn Error + Send + Sync + 'static, Global>;
Expand description
Convenience type alias for grouping driver-specific errors
\ No newline at end of file
diff --git a/db_sqlx_maria/dev/dev/errors/type.DBResult.html b/db_sqlx_maria/dev/dev/errors/type.DBResult.html
index 27ed7544..a6a2af0c 100644
--- a/db_sqlx_maria/dev/dev/errors/type.DBResult.html
+++ b/db_sqlx_maria/dev/dev/errors/type.DBResult.html
@@ -1,2 +1,2 @@
-DBResult in db_sqlx_maria::dev::dev::errors - Rust Type Definition db_sqlx_maria::dev::dev::errors::DBResult
pub type DBResult<V> = Result<V, DBError>;
Expand description
Generic result data structure
+DBResult in db_sqlx_maria::dev::dev::errors - Rust
\ No newline at end of file
diff --git a/db_sqlx_maria/dev/dev/index.html b/db_sqlx_maria/dev/dev/index.html
index 20471830..e1dd33e6 100644
--- a/db_sqlx_maria/dev/dev/index.html
+++ b/db_sqlx_maria/dev/dev/index.html
@@ -1,3 +1,3 @@
-db_sqlx_maria::dev::dev - Rust Module db_sqlx_maria::dev::dev
Expand description
useful imports for supporting a new database
+db_sqlx_maria::dev::dev - Rust Module db_sqlx_maria::dev::dev
Expand description
useful imports for supporting a new database
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
- 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 Definitions
- Convenience type alias for grouping driver-specific errors
- Generic result data structure
Attribute Macros
\ No newline at end of file
diff --git a/db_sqlx_maria/dev/dev/ops/index.html b/db_sqlx_maria/dev/dev/ops/index.html
index 8d12b6a8..aaacaf86 100644
--- a/db_sqlx_maria/dev/dev/ops/index.html
+++ b/db_sqlx_maria/dev/dev/ops/index.html
@@ -1,2 +1,2 @@
-db_sqlx_maria::dev::dev::ops - Rust Module db_sqlx_maria::dev::dev::ops
Expand description
meta operations like migration and connecting to a database
+db_sqlx_maria::dev::dev::ops - Rust Module db_sqlx_maria::dev::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
diff --git a/db_sqlx_maria/dev/dev/ops/trait.Connect.html b/db_sqlx_maria/dev/dev/ops/trait.Connect.html
index 1a1d17c1..ae712e22 100644
--- a/db_sqlx_maria/dev/dev/ops/trait.Connect.html
+++ b/db_sqlx_maria/dev/dev/ops/trait.Connect.html
@@ -1,16 +1,16 @@
-Connect in db_sqlx_maria::dev::dev::ops - Rust Trait db_sqlx_maria::dev::dev::ops::Connect
pub trait Connect {
+Connect in db_sqlx_maria::dev::dev::ops - Rust Trait db_sqlx_maria::dev::dev::ops::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, Global>>
+ ) -> Pin<Box<dyn Future<Output = Result<Self::Pool, DBError>> + Send + 'async_trait, Global>>
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, Global>>where
+) -> Pin<Box<dyn Future<Output = Result<Self::Pool, DBError>> + Send + 'async_trait, Global>>where
Self: 'async_trait,
database specific error-type
create connection pool
Implementors§
\ No newline at end of file
diff --git a/db_sqlx_maria/dev/dev/ops/trait.DBOps.html b/db_sqlx_maria/dev/dev/ops/trait.DBOps.html
index 0b1fce36..dbaab9e4 100644
--- a/db_sqlx_maria/dev/dev/ops/trait.DBOps.html
+++ b/db_sqlx_maria/dev/dev/ops/trait.DBOps.html
@@ -1,2 +1,2 @@
-DBOps in db_sqlx_maria::dev::dev::ops - Rust Trait db_sqlx_maria::dev::dev::ops::DBOps
pub trait DBOps: GetConnection + Migrate { }
Expand description
Database operations trait(migrations, pool creation and fetching connection from pool)
+DBOps in db_sqlx_maria::dev::dev::ops - Rust Trait db_sqlx_maria::dev::dev::ops::DBOps
pub trait DBOps: GetConnection + Migrate { }
Expand description
Database operations trait(migrations, pool creation and fetching connection from pool)
Implementors§
\ No newline at end of file
diff --git a/db_sqlx_maria/dev/dev/ops/trait.GetConnection.html b/db_sqlx_maria/dev/dev/ops/trait.GetConnection.html
index 49602ed4..c7d4e0e8 100644
--- a/db_sqlx_maria/dev/dev/ops/trait.GetConnection.html
+++ b/db_sqlx_maria/dev/dev/ops/trait.GetConnection.html
@@ -1,17 +1,17 @@
-GetConnection in db_sqlx_maria::dev::dev::ops - Rust Trait db_sqlx_maria::dev::dev::ops::GetConnection
pub trait GetConnection {
+GetConnection in db_sqlx_maria::dev::dev::ops - Rust Trait db_sqlx_maria::dev::dev::ops::