List of all items
Structs
- AddNotification
- Captcha
- CreateCaptcha
- CreatePerformanceAnalytics
- EasyCaptcha
- Level
- NameHash
- Notification
- PerformanceAnalytics
- Register
- Secret
- StatsUnixTimestamp
- TrafficPattern
- UpdateEmail
diff --git a/db_core/all.html b/db_core/all.html index d996702e..eb18eaad 100644 --- a/db_core/all.html +++ b/db_core/all.html @@ -1,2 +1,2 @@ -
#[async_trait]useful imports for supporting a new database
-pub use super::prelude::*;pub use super::prelude::*;pub enum Login<'a> {
- Username(&'a str),
- Email(&'a str),
+ Username(&'a str),
+ Email(&'a str),
}types of credentials used as identifiers during login
-Subscriber to this type, returning a
+ S: Into<Dispatch>,pub enum DBError {
DBError(BoxDynError),
UsernameTaken,
@@ -19,21 +19,21 @@
Captcha not found
Traffic pattern not found
Notification not found
-Subscriber to this type, returning a
+ S: Into<Dispatch>,represents all the ways a trait can fail using this crate
-pub type BoxDynError = Box<dyn StdError + Send + Sync + 'static>;Convenience type alias for grouping driver-specific errors
+pub type DBResult<V> = Result<V, DBError>;Generic result data structure
+pub type DBResult<V> = Result<V, DBError>;Generic result data structure
enum DBResult<V> {
Ok(V),
Err(DBError),
diff --git a/db_core/index.html b/db_core/index.html
index e3faff9d..febc665d 100644
--- a/db_core/index.html
+++ b/db_core/index.html
@@ -1,15 +1,15 @@
-db_core - Rust