Skip to main content

Crate jamjet_state

Crate jamjet_state 

Source

Re-exports§

pub use backend::ApiToken;
pub use backend::BackendResult;
pub use backend::ReclaimResult;
pub use backend::StateBackend;
pub use backend::StateBackendError;
pub use backend::WorkItem;
pub use backend::WorkItemId;
pub use backend::WorkflowDefinition;
pub use budget::BudgetState;
pub use event::Event;
pub use event::EventKind;
pub use event::EventSequence;
pub use event::ProvenanceMetadata;
pub use materializer::apply_events;
pub use materializer::materialize;
pub use materializer::should_snapshot;
pub use materializer::MaterializedState;
pub use memory::InMemoryBackend;
pub use snapshot::Snapshot;
pub use sqlite::SqliteBackend;
pub use tenant::Tenant;
pub use tenant::TenantId;
pub use tenant::TenantLimits;
pub use tenant::TenantStatus;
pub use tenant::DEFAULT_TENANT;
pub use tenant_scoped::TenantScopedSqliteBackend;

Modules§

backend
budget
Budget state accumulator — tracks token and cost usage per execution.
event
materializer
State materialization — reconstruct current workflow state from events.
memory
In-memory state backend — no persistence, no external dependencies.
snapshot
sqlite
tenant
Multi-tenant isolation types and constants.
tenant_scoped
Tenant-scoped SQLite backend — wraps a shared SqlitePool and transparently filters all queries by tenant_id.