Module prelude

Module prelude 

Source
Expand description

§Prelude

The prelude module provides convenient imports for common elif.rs functionality.

use elif::prelude::*;

Macros§

json
Construct a serde_json::Value from a JSON literal.

Structs§

ApiError
API error structure
ApiErrorResponse
API error response structure
AppBootstrapper
The main bootstrap orchestrator that handles the complete app startup process
AppConfig
Default application configuration
BaseModule
Base module implementation for common functionality
Container
ContainerBuilder
Builder for constructing containers with services
ControllerRoute
Controller route definition
ElifRequest
Request abstraction that wraps Axum’s request types with additional parsing and extraction capabilities
ElifResponse
Response builder for creating HTTP responses with fluent API
ErrorDefinition
Error definition for the error catalog
ModuleLoader
Module loader for orchestrating module loading process
ModuleRegistry
Module registry for managing module lifecycle and dependencies
ProviderRegistry
Provider registry manages service providers and their lifecycle
Request
Request abstraction that wraps Axum’s request types with additional parsing and extraction capabilities
Response
Response builder for creating HTTP responses with fluent API
RouteParam
Route parameter definition for controllers
Router
Main router for the elif.rs framework
Server
The main HTTP server - NestJS-like experience
ServiceRegistry
Registry for managing service instances and factories

Enums§

ConfigSource
Configuration source information for debugging and hot-reload
CoreError
Core error type for the elif framework
Environment
Environment enumeration
HttpError
HTTP server errors
HttpMethod
HTTP methods supported by the router
ParamType
Supported parameter types
ServiceScope
Service scope enumeration

Traits§

AppBootstrap
Trait for app modules that can bootstrap themselves
AppConfigTrait
Configuration trait for application configuration
Deserialize
A data structure that can be deserialized from any data format supported by Serde.
ElifController
Main trait for controllers with automatic route registration
Handler
IntoElifResponse
Middleware
New middleware trait with Laravel-style handle(request, next) pattern Uses boxed futures to be dyn-compatible
Model
Core trait for database models with standard ORM operations
Module
Application module trait that integrates with the framework
Serialize
A data structure that can be serialized into any data format supported by Serde.
ServiceProvider
Service provider trait for registering services and managing lifecycle

Type Aliases§

HttpResult
Result type for HTTP operations

Attribute Macros§

async_trait
body
Request body specification macro
bootstrap
Enhanced bootstrap macro for zero-boilerplate application startup
controller
Controller macro for defining controller base path and metadata
delete
DELETE method routing macro
get
GET method routing macro
head
HEAD method routing macro
main
Attribute macro for async main functions in elif.rs applications
module
Module definition macro for dependency injection modules
options
OPTIONS method routing macro
param
Route parameter specification macro
patch
PATCH method routing macro
post
POST method routing macro
put
PUT method routing macro

Derive Macros§

Deserialize
Serialize