Skip to main content

Crate ultraapi

Crate ultraapi 

Source

Re-exports§

pub use UltraApiApp as HayaiApp;
pub use UltraApiRouter as HayaiRouter;
pub use axum;
pub use inventory;
pub use regex;
pub use schemars;
pub use serde;
pub use serde_json;

Modules§

openapi
prelude

Macros§

impl_async_validate

Structs§

ApiError
API Error type
AppState
Application state holding dependency injection container
Dep
Dependency injection extractor
ResolvedRoute
A resolved route with runtime prefix and merged tags/security
RouteInfo
Route information collected by proc macros
SchemaInfo
Schema information collected by api_model attribute
State
Axum-style state extractor — alternative to Dep Both work identically; choose based on your preferred style.
UltraApiApp
The main application struct
UltraApiRouter
A FastAPI-style router with prefix, shared tags, security, deps, and nested routers

Enums§

SwaggerMode
Swagger UI serving mode

Traits§

AsyncValidate
Validate
Validation trait generated by api_model attribute

Attribute Macros§

api_model
delete
get
post
put