Skip to main content

Crate oxide_framework_core

Crate oxide_framework_core 

Source

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.
OxideRouter
Thin wrapper around axum::Router that 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.
StatusCode
An HTTP status code (status-code in RFC 9110 et al.).
TestServer
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 impl block as an Oxide controller.