Re-exports§
pub use config::env;pub use config::env;pub use config::env_optional;pub use config::env_required;pub use config::AppConfig;pub use config::Config;pub use config::Environment;pub use config::ServerConfig;pub use container::App;pub use container::Container;pub use database::AutoRouteBinding;pub use database::Database;pub use database::DatabaseConfig;pub use database::DatabaseType;pub use database::DbConnection;pub use database::Model;pub use database::ModelMut;pub use database::RouteBinding;pub use database::DB;pub use error::AppError;pub use error::FrameworkError;pub use error::HttpError;pub use error::ValidationErrors;pub use http::json;pub use http::text;pub use http::FormRequest;pub use http::FromParam;pub use http::FromRequest;pub use http::HttpResponse;pub use http::Redirect;pub use http::Request;pub use http::Response;pub use http::ResponseExt;pub use inertia::InertiaConfig;pub use inertia::InertiaContext;pub use inertia::InertiaResponse;pub use middleware::register_global_middleware;pub use middleware::Middleware;pub use middleware::MiddlewareFuture;pub use middleware::MiddlewareRegistry;pub use middleware::Next;pub use routing::route;pub use routing::validate_route_path;pub use routing::FallbackDefBuilder;pub use routing::GroupBuilder;pub use routing::GroupDef;pub use routing::GroupItem;pub use routing::GroupRoute;pub use routing::GroupRouter;pub use routing::IntoGroupItem;pub use routing::RouteBuilder;pub use routing::RouteDefBuilder;pub use routing::Router;pub use server::Server;pub use serde;pub use validator;
Modules§
- config
- Configuration module for Kit framework
- container
- Application Container for Dependency Injection
- database
- Database module for Kit framework
- error
- Framework-wide error types
- http
- inertia
- middleware
- Middleware system for Kit framework
- routing
- server
- testing
- Testing utilities for Kit framework
Macros§
- bind
- Bind a trait to a singleton implementation (auto-wraps in Arc)
- bind_
factory - Bind a trait to a factory (auto-wraps in Arc, new instance each resolution)
- delete
- Create a DELETE route definition with compile-time path validation
- describe
- Group related tests with a descriptive name
- expect
- Create an expectation for fluent assertions
- factory
- Register a factory (concrete type, new instance each resolution)
- fallback
- Create a fallback route definition
- get
- Create a GET route definition with compile-time path validation
- global_
middleware - Register global middleware that runs on every request
- group
- Define a route group with a shared prefix
- inertia_
response - Create an Inertia response with compile-time component validation
- json_
response - post
- Create a POST route definition with compile-time path validation
- put
- Create a PUT route definition with compile-time path validation
- redirect
- Create a redirect to a named route with compile-time validation
- route_
binding - Convenience macro to implement RouteBinding for a SeaORM model
- routes
- Define routes with a clean, Laravel-like syntax
- singleton
- Register a singleton instance (concrete type)
- test
- Define an individual test case with a descriptive name
- test_
database - Create a test database with default migrator
- text_
response
Traits§
- Validate
- This is the original trait that was implemented by deriving
Validate. It will still be implemented for struct validations that don’t take custom arguments. The call is being forwarded to theValidateArgs<'v_a>trait.
Attribute Macros§
- async_
trait - domain_
error - Define a domain error with automatic HTTP response conversion
- handler
- Attribute macro for controller handler methods
- injectable
- Attribute macro to auto-register a concrete type as a singleton
- kit_
test - Attribute macro for database-enabled tests
- request
- Attribute macro for clean request data definition
- service
- Mark a trait as a service for the App container
Derive Macros§
- Form
Request Derive - Derive macro for FormRequest trait
- Inertia
Props - Derive macro for generating
Serializeimplementation for Inertia props - Validate