Skip to main content

Crate santity_pdk

Crate santity_pdk 

Source

Re-exports§

pub use audit::AuditLogAction;
pub use audit::AuditLogEntry;
pub use brand::BrandColor;
pub use brand::BrandEmbed;
pub use channel::Channel;
pub use exports::segv::santity::handler::Guest;
pub use guild::CreatedChannel;
pub use guild::DiscordApiError;
pub use guild::Guild;
pub use segv::santity::host::cancel_timer as wit_cancel_timer;
pub use segv::santity::host::db_get;
pub use segv::santity::host::db_increment;
pub use segv::santity::host::db_set;
pub use segv::santity::host::discord_request;
pub use segv::santity::host::http_fetch;
pub use segv::santity::host::log as wit_log;
pub use segv::santity::host::schedule_interval as wit_schedule_interval;
pub use segv::santity::host::schedule_timeout as wit_schedule_timeout;
pub use segv::santity::host::send_message;
pub use router::Router;
pub use serde_json;
pub use segv::santity::types::*;

Modules§

audit
High-Level Audit Log Domain Module
brand
Luxury Brand Embed System (Strictly Zero Emojis)
channel
High-Level Channel Domain Module
exports
guild
High-Level Guild Domain Module
http
prelude
router
segv
storage
timer
voice
Voice Audio Engine Module

Macros§

debug
Logs a message at the debug level.
error
Logs a message at the error level.
export
Generates #[no_mangle] functions to export the specified type as the root implementation of all generated traits.
info
Logs a message at the info level.
trace
Logs a message at the trace level.
warn
Logs a message at the warn level.

Structs§

Button
EmbedBuilder
MessageBuilder
ModalBuilder
SantityLogger
Internal logger implementation bridging the Rust log crate to raw Wasm WIT host logging calls.

Enums§

PdkError

Traits§

Deserialize
A data structure that can be deserialized from any data format supported by Serde.
Serialize
A data structure that can be serialized into any data format supported by Serde.

Functions§

init
Initialize the global PDK logger with max log level set to Trace by default.
init_with_level
Initialize the global PDK logger with a specific maximum log level.

Attribute Macros§

plugin
Attribute macro for Wasm plugins.

Derive Macros§

Deserialize
Derive macro available if serde is built with features = ["derive"].
Serialize
Derive macro available if serde is built with features = ["derive"].