Expand description
§Prelude
The prelude module provides convenient imports for common elif.rs functionality.
use elif::prelude::*;Macros§
- json
- Construct a
serde_json::Valuefrom a JSON literal.
Structs§
- ApiError
- API error structure
- ApiError
Response - API error response structure
- AppBootstrapper
- The main bootstrap orchestrator that handles the complete app startup process
- AppConfig
- Default application configuration
- Base
Module - Base module implementation for common functionality
- Container
- Container
Builder - Builder for constructing containers with services
- Controller
Route - Controller route definition
- Elif
Request - Request abstraction that wraps Axum’s request types with additional parsing and extraction capabilities
- Elif
Response - Response builder for creating HTTP responses with fluent API
- Error
Definition - Error definition for the error catalog
- Module
Loader - Module loader for orchestrating module loading process
- Module
Registry - Module registry for managing module lifecycle and dependencies
- Provider
Registry - 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
- Route
Param - Route parameter definition for controllers
- Router
- Main router for the elif.rs framework
- Server
- The main HTTP server - NestJS-like experience
- Service
Registry - Registry for managing service instances and factories
Enums§
- Config
Source - Configuration source information for debugging and hot-reload
- Core
Error - Core error type for the elif framework
- Environment
- Environment enumeration
- Http
Error - HTTP server errors
- Http
Method - HTTP methods supported by the router
- Param
Type - Supported parameter types
- Service
Scope - Service scope enumeration
Traits§
- AppBootstrap
- Trait for app modules that can bootstrap themselves
- AppConfig
Trait - Configuration trait for application configuration
- Deserialize
- A data structure that can be deserialized from any data format supported by Serde.
- Elif
Controller - Main trait for controllers with automatic route registration
- Handler
- Into
Elif Response - 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.
- Service
Provider - Service provider trait for registering services and managing lifecycle
Type Aliases§
- Http
Result - 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