Module prelude

Module prelude 

Source
Expand description

Prelude module for common imports.

Re-exports§

pub use crate::Forge;
pub use crate::ForgeBuilder;
pub use serde_json;

Structs§

ActionContext
Context for action functions (can call external APIs).
AuthContext
Authentication context available to all functions.
CronContext
Context available to cron handlers.
DateTime
ISO 8601 combined date and time with time zone.
Delta
Delta format for subscription updates.
FieldDef
Definition of a model field.
ForgeConfig
Root configuration for FORGE.
JobContext
Context available to job handlers.
MutationContext
Context for mutation functions (transactional database access).
QueryContext
Context for query functions (read-only database access).
SchemaRegistry
Global registry of all schema definitions. This is populated at compile time by the proc macros.
TableDef
Complete table definition.
Utc
The UTC time zone. This is the most efficient time zone when you don’t need the local time. It is also used as an offset (which is also a dummy type).
Uuid
A Universally Unique Identifier (UUID).
WorkflowContext
Context available to workflow handlers.

Enums§

ForgeError
Core error type for FORGE operations.
JobPriority
Job priority levels.
NodeRole
Node role in the cluster.

Traits§

Deserialize
A data structure that can be deserialized from any data format supported by Serde.
EnvAccess
Extension methods for environment variable access on contexts.
ForgeCron
Trait for cron job handlers.
ForgeJob
Trait for FORGE job handlers.
ForgeMutation
A mutation function (transactional write).
ForgeQuery
A query function (read-only, cacheable, subscribable).
ForgeWorkflow
Trait for workflow handlers.
ModelMeta
Trait implemented by all FORGE models. Generated by the #[forge::model] macro.
Serialize
A data structure that can be serialized into any data format supported by Serde.

Type Aliases§

Result
Result type alias using ForgeError.
Timestamp
Timestamp type alias for convenience.

Derive Macros§

Deserialize
Serialize