Crate kbve

Source

Re-exports§

pub use schema::*;
pub use db::*;
pub use models::*;
pub use utility::*;
pub use guild::*;
pub use spellbook::*;
pub use runes::*;
pub use authentication::*;
pub use utils::*;
pub use sys::*;
pub use entity::*;

Modules§

authentication
[AUTH]
db
entity
guild
models
runes
schema
spellbook
[SPELLBOOK]
sys
utility
[UTILITY]
utils

Macros§

spellbook_complete
spellbook_create_cookie
spellbook_create_jwt
spellbook_email
spellbook_env_load
spellbook_env_load_duration
spellbook_error
spellbook_generate_ulid_bytes
spellbook_generate_ulid_string
spellbook_get_global
spellbook_hazardous_boolean_exist_via_ulid
! [Hazardous] ? Macro -> Hazardous_Booleans
spellbook_hazardous_task_fetch
? Macro -> Hazardous Task Fetch
spellbook_pool
This macro is a utility for working with database connection pools. It tries to retrieve a connection from the provided pool. If successful, the connection is returned for further use. If there’s an error in obtaining a connection, it handles the error by immediately returning an HTTP response with an appropriate error message and status code. This macro ensures a uniform way of handling database pool errors across different parts of an Axum application.
spellbook_pool_conn
spellbook_sanitize_fields
In the spellbook_sanitize_fields macro: - It takes any struct ($struct) and a list of fields within that struct. - For each field, if it is an Option and currently has a value (Some), that value is sanitized using the crate::utility::sanitize_string_limit function. - The macro is designed to be reusable for any struct with fields that need sanitizing and can handle multiple fields at once. - This macro simplifies the process of sanitizing multiple fields in a struct, ensuring that each specified field is sanitized if it contains a value. It reduces code repetition and improves readability by abstracting the common pattern of sanitizing multiple optional fields.
spellbook_ulid
spellbook_username