Expand description
useful imports for supporting a new database
+Expand description
useful imports for supporting a new database
Re-exports
pub use super::prelude::*;
Attribute Macros
pub enum Login<'a> {
+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>
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<'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.
diff --git a/db_core/errors/enum.DBError.html b/db_core/errors/enum.DBError.html
index 8efff90e..42c9d866 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,7 +18,7 @@
§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§
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
const: unstable · source§fn from(t: T) -> T
Returns the argument unchanged.
diff --git a/db_core/errors/index.html b/db_core/errors/index.html
index d962ec91..1c1a2160 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 2411a803..600f8e18 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 337afc23..ca6bde80 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 d217ea79..bc7733a3 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 329220cf..89a1ab18 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 822220c6..85338347 100644
--- a/db_core/ops/trait.Connect.html
+++ b/db_core/ops/trait.Connect.html
@@ -1,4 +1,4 @@
-Connect in db_core::ops - Rust pub trait Connect {
+Connect in db_core::ops - Rust pub trait Connect {
type Pool: MCDatabase;
// Required method
@@ -7,8 +7,8 @@
) -> 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§
Required Associated Types§
sourcetype Pool: MCDatabase
database specific pool-type
+Required Methods§
sourcefn connect<'async_trait>(
self
) -> Pin<Box<dyn Future<Output = DBResult<Self::Pool>> + Send + 'async_trait>>where
Self: 'async_trait,
database specific error-type
diff --git a/db_core/ops/trait.DBOps.html b/db_core/ops/trait.DBOps.html
index 557ed1ec..38d8d747 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 a41577e9..ec69b5d2 100644
--- a/db_core/ops/trait.GetConnection.html
+++ b/db_core/ops/trait.GetConnection.html
@@ -1,4 +1,4 @@
-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
@@ -8,8 +8,8 @@
where Self: 'async_trait,
'life0: 'async_trait;
}
Expand description
Get database connection
-Required Associated Types§
Required Methods§
Required Associated Types§
Required Methods§
sourcefn get_conn<'life0, 'async_trait>(
&'life0 self
) -> Pin<Box<dyn Future<Output = DBResult<Self::Conn>> + Send + 'async_trait>>where
Self: 'async_trait,
diff --git a/db_core/ops/trait.Migrate.html b/db_core/ops/trait.Migrate.html
index 9b1599e0..3af29f8b 100644
--- a/db_core/ops/trait.Migrate.html
+++ b/db_core/ops/trait.Migrate.html
@@ -1,4 +1,4 @@
-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
@@ -6,7 +6,7 @@
where Self: 'async_trait,
'life0: 'async_trait;
}
Expand description
database migrations
-Required Methods§
Required Methods§
sourcefn migrate<'life0, 'async_trait>(
&'life0 self
) -> Pin<Box<dyn Future<Output = DBResult<()>> + Send + 'async_trait>>where
Self: 'async_trait,
diff --git a/db_core/prelude/index.html b/db_core/prelude/index.html
index b16a3bdc..19938b0a 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 dfd42d7a..b00329d4 100644
--- a/db_core/struct.AddNotification.html
+++ b/db_core/struct.AddNotification.html
@@ -1,4 +1,4 @@
-AddNotification in db_core - Rust Struct db_core::AddNotification
source · pub struct AddNotification<'a> {
+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,
@@ -8,11 +8,11 @@
§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
+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<'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
const: unstable · source§fn from(t: T) -> T
Returns the argument unchanged.
diff --git a/db_core/struct.Captcha.html b/db_core/struct.Captcha.html
index ae60cf24..0282ce20 100644
--- a/db_core/struct.Captcha.html
+++ b/db_core/struct.Captcha.html
@@ -1,4 +1,4 @@
-Captcha in db_core - Rust pub struct Captcha {
+Captcha in db_core - Rust pub struct Captcha {
pub config_id: i32,
pub duration: i32,
pub description: String,
@@ -8,11 +8,11 @@
§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§fn eq(&self, other: &Captcha) -> bool
This method tests for self and other values to be equal, and is used
+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 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
const: unstable · source§fn from(t: T) -> T
Returns the argument unchanged.
diff --git a/db_core/struct.CreateCaptcha.html b/db_core/struct.CreateCaptcha.html
index f130abb0..b55dd8b0 100644
--- a/db_core/struct.CreateCaptcha.html
+++ b/db_core/struct.CreateCaptcha.html
@@ -1,4 +1,4 @@
-CreateCaptcha in db_core - Rust Struct db_core::CreateCaptcha
source · pub struct CreateCaptcha<'a> {
+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,
@@ -6,11 +6,11 @@
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
+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<'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
const: unstable · source§fn from(t: T) -> T
Returns the argument unchanged.
diff --git a/db_core/struct.CreatePerformanceAnalytics.html b/db_core/struct.CreatePerformanceAnalytics.html
index 6235e7db..ff424389 100644
--- a/db_core/struct.CreatePerformanceAnalytics.html
+++ b/db_core/struct.CreatePerformanceAnalytics.html
@@ -1,4 +1,4 @@
-CreatePerformanceAnalytics in db_core - Rust Struct db_core::CreatePerformanceAnalytics
source · pub struct CreatePerformanceAnalytics {
+CreatePerformanceAnalytics in db_core - Rust Struct db_core::CreatePerformanceAnalytics
source · pub struct CreatePerformanceAnalytics {
pub time: u32,
pub difficulty_factor: u32,
pub worker_type: String,
@@ -6,11 +6,11 @@
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
+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 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
const: unstable · source§fn from(t: T) -> T
Returns the argument unchanged.
diff --git a/db_core/struct.NameHash.html b/db_core/struct.NameHash.html
index fd5723ce..19295c9a 100644
--- a/db_core/struct.NameHash.html
+++ b/db_core/struct.NameHash.html
@@ -1,14 +1,14 @@
-NameHash in db_core - Rust pub struct NameHash {
+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§fn eq(&self, other: &NameHash) -> bool
This method tests for self and other values to be equal, and is used
+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 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
const: unstable · source§fn from(t: T) -> T
Returns the argument unchanged.
diff --git a/db_core/struct.Notification.html b/db_core/struct.Notification.html
index 300565bd..bb022a02 100644
--- a/db_core/struct.Notification.html
+++ b/db_core/struct.Notification.html
@@ -1,4 +1,4 @@
-Notification in db_core - Rust Struct db_core::Notification
source · pub struct Notification {
+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>,
@@ -10,11 +10,11 @@
§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
+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 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
const: unstable · source§fn from(t: T) -> T
Returns the argument unchanged.
diff --git a/db_core/struct.PerformanceAnalytics.html b/db_core/struct.PerformanceAnalytics.html
index 65556fe3..391663ea 100644
--- a/db_core/struct.PerformanceAnalytics.html
+++ b/db_core/struct.PerformanceAnalytics.html
@@ -1,4 +1,4 @@
-PerformanceAnalytics in db_core - Rust Struct db_core::PerformanceAnalytics
source · pub struct PerformanceAnalytics {
+PerformanceAnalytics in db_core - Rust Struct db_core::PerformanceAnalytics
source · pub struct PerformanceAnalytics {
pub id: usize,
pub time: u32,
pub difficulty_factor: u32,
@@ -8,11 +8,11 @@
§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
+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 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
const: unstable · source§fn from(t: T) -> T
Returns the argument unchanged.
diff --git a/db_core/struct.Register.html b/db_core/struct.Register.html
index 92c16a10..3826d7bf 100644
--- a/db_core/struct.Register.html
+++ b/db_core/struct.Register.html
@@ -1,4 +1,4 @@
-Register in db_core - Rust pub struct Register<'a> {
+Register in db_core - Rust pub struct Register<'a> {
pub username: &'a str,
pub secret: &'a str,
pub hash: &'a str,
@@ -8,11 +8,11 @@
§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§fn eq(&self, other: &Register<'a>) -> bool
This method tests for self and other values to be equal, and is used
+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<'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
const: unstable · source§fn from(t: T) -> T
Returns the argument unchanged.
diff --git a/db_core/struct.Secret.html b/db_core/struct.Secret.html
index f3fd01ad..3862df15 100644
--- a/db_core/struct.Secret.html
+++ b/db_core/struct.Secret.html
@@ -1,12 +1,12 @@
-Secret in db_core - Rust pub struct Secret {
+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§fn eq(&self, other: &Secret) -> bool
This method tests for self and other values to be equal, and is used
+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 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
const: unstable · source§fn from(t: T) -> T
Returns the argument unchanged.
diff --git a/db_core/struct.StatsUnixTimestamp.html b/db_core/struct.StatsUnixTimestamp.html
index d3c9616d..fb9cd7b9 100644
--- a/db_core/struct.StatsUnixTimestamp.html
+++ b/db_core/struct.StatsUnixTimestamp.html
@@ -1,4 +1,4 @@
-StatsUnixTimestamp in db_core - Rust Struct db_core::StatsUnixTimestamp
source · pub struct StatsUnixTimestamp {
+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>,
@@ -6,11 +6,11 @@
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
+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 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
const: unstable · source§fn from(t: T) -> T
Returns the argument unchanged.
diff --git a/db_core/struct.TrafficPattern.html b/db_core/struct.TrafficPattern.html
index 6f0e0443..976b070c 100644
--- a/db_core/struct.TrafficPattern.html
+++ b/db_core/struct.TrafficPattern.html
@@ -1,4 +1,4 @@
-TrafficPattern in db_core - Rust Struct db_core::TrafficPattern
source · pub struct TrafficPattern {
+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>,
@@ -6,11 +6,11 @@
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
+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 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
const: unstable · source§fn from(t: T) -> T
Returns the argument unchanged.
diff --git a/db_core/struct.UpdateEmail.html b/db_core/struct.UpdateEmail.html
index 4abe70f7..9345245e 100644
--- a/db_core/struct.UpdateEmail.html
+++ b/db_core/struct.UpdateEmail.html
@@ -1,14 +1,14 @@
-UpdateEmail in db_core - Rust Struct db_core::UpdateEmail
source · pub struct UpdateEmail<'a> {
+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
+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<'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
const: unstable · source§fn from(t: T) -> T
Returns the argument unchanged.
diff --git a/db_core/tests/fn.database_works.html b/db_core/tests/fn.database_works.html
index e4af1662..2bbaff26 100644
--- a/db_core/tests/fn.database_works.html
+++ b/db_core/tests/fn.database_works.html
@@ -1,4 +1,4 @@
-database_works in db_core::tests - Rust Function db_core::tests::database_works
source · pub async fn database_works<'a, T: MCDatabase>(
+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>,
diff --git a/db_core/tests/index.html b/db_core/tests/index.html
index 9100b01e..e78f08ef 100644
--- a/db_core/tests/index.html
+++ b/db_core/tests/index.html
@@ -1,2 +1,2 @@
-db_core::tests - Rust