Module prelude
Expand description
useful imports for users working with a supported database
Modules§
- dev
- useful imports for supporting a new database
Structs§
- AddNotification
- Data required to add notification
- Captcha
- Data representing a captcha
- Create
Captcha - data required to create new captcha
- Create
Performance Analytics - Log Proof-of-Work CAPTCHA performance analytics
- Easy
Captcha - Represents Easy captcha configuration
- Level
- Level struct that describes threshold-difficulty factor mapping
- Name
Hash - type encapsulating username and hashed password of a user
- Notification
- Represents notification
- Performance
Analytics - Proof-of-Work CAPTCHA performance analytics
- Register
- Data required to register a new user
- Secret
- datastructure representing a user’s secret
- Stats
Unix Timestamp - Captcha statistics with time recorded in UNIX epoch formats
- Traffic
Pattern - User’s traffic pattern; used in generating a captcha configuration
- Update
Email - data required to update them email of a user
Enums§
- DBError
- Error data structure grouping various error subtypes
- Login
- types of credentials used as identifiers during login
Traits§
- CloneSP
Database - Trait to clone MCDatabase
- Connect
- Create database connection
- DBOps
- Database operations trait(migrations, pool creation and fetching connection from pool)
- GetConnection
- Get database connection
- MCDatabase
- mCaptcha’s database requirements. To implement support for $Database, kindly implement this trait.
- Migrate
- database migrations
Type Aliases§
- BoxDyn
Error - Convenience type alias for grouping driver-specific errors
- DBResult
- Generic result data structure