Crate kit_rs

Crate kit_rs 

Source

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::delete;
pub use routing::get;
pub use routing::post;
pub use routing::put;
pub use routing::route;
pub use routing::GroupBuilder;
pub use routing::GroupDef;
pub use routing::GroupRoute;
pub use routing::GroupRouter;
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 the application container

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)
factory
Register a factory (concrete type, new instance each resolution)
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
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)
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 the ValidateArgs<'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
request
Attribute macro for clean request data definition
service
Mark a trait as a service for the App container

Derive Macros§

FormRequestDerive
Derive macro for FormRequest trait
InertiaProps
Derive macro for generating Serialize implementation for Inertia props
Validate