Skip to main content

Module store

Module store 

Source
Expand description

Storage traits (RFC-005, RFC-006, RFC-007).

These traits define the contract between codlet-core and any storage backend. Adapters (in-memory, SQLx, Workers D1) implement them and must pass the conformance suite (RFC-023) before being considered production-ready.

Re-exports§

pub use code::ClaimRequest;
pub use code::CodeRecord;
pub use code::CodeStore;
pub use code::RedeemableCode;
pub use error::PublicAuthError;
pub use error::StoreError;
pub use ratelimit::RateLimitKey;
pub use ratelimit::RateLimitOutcome;
pub use ratelimit::RateLimitPolicy;
pub use ratelimit::RateLimitStore;
pub use ratelimit::RateLimitUnavailable;
pub use session::ActiveSessionRecord;
pub use session::SessionRecord;
pub use session::SessionStore;
pub use token::FormTokenRecord;
pub use token::FormTokenStore;
pub use token::TokenSubject;

Modules§

code
Code storage trait (RFC-005).
error
Public-safe and internal error types (RFC-012/021).
ratelimit
Rate-limit policy and storage trait (RFC-008).
session
Session storage trait (RFC-006).
token
Form-token storage trait (RFC-007).