Skip to main content

Crate crabkey_core

Crate crabkey_core 

Source

Re-exports§

pub use crabkey_middleware as middleware;
pub use crabkey_storage as storage;

Modules§

cache
error
logger
models
state

Structs§

ApiResponse
Unified API response wrapper.
AppState
AuditEvent
CacheEntry
Credits
Newtype for attaching credit cost to a response via extensions.
ResponseMeta
Metadata included in every API response.
UsageEntry
A single usage log entry to be recorded.

Enums§

AppError
Unified application error type.
CacheError
LogError
StoreError
Errors returned by storage backends.

Traits§

AuditLogger
CacheStore
UsageStore
Trait for pluggable usage-tracking storage backends.

Attribute Macros§

credits
Attribute macro that injects Credits(n) into the response extensions.