Re-exports§
pub use auth::encode_token;pub use auth::AuthClaims;pub use auth::AuthConfig;pub use auth::AuthLayer;pub use auth::AuthRejection;pub use auth::Authenticated;pub use auth::OptionalAuth;pub use auth::RequireRole;pub use auth::RoleName;
Modules§
- auth
- JWT authentication and role guards.
- middleware
Structs§
- App
- Primary entry point for building an Oxide application.
- AppConfig
- AppState
- Shared application state injected into every request.
- Config
- Extractor for the application configuration.
- Data
- Extractor for user-provided state registered via
App::state(). - Inject
- Ergonomic alias for
Data<T>— intended for use inside controllers. - Json
- JSON Extractor / Response.
- Oxide
Router - Thin wrapper around
axum::Routerthat provides a simplified registration API with support for grouping, nesting, and merging. - Path
- Extractor that will get captures from the URL and parse them using
serde. - Scoped
- Extractor for request-scoped dependencies.
- Status
Code - An HTTP status code (
status-codein RFC 9110 et al.). - Test
Server - A running test server bound to a random port.
Enums§
- ApiResponse
- A unified response type that handlers can return.
- Method
- HTTP methods supported by the framework.
Traits§
- Controller
- Trait implemented by
#[controller]-annotated types.
Attribute Macros§
- controller
- Marks an
implblock as an Oxide controller.