Skip to main content

Crate modo

Crate modo 

Source

Re-exports§

pub use app::AppBuilder;
pub use app::AppState;
pub use app::ServiceRegistry;
pub use config::AppConfig;
pub use config::HttpConfig;
pub use config::RateLimitConfig;
pub use config::SecurityHeadersConfig;
pub use config::ServerConfig;
pub use config::TrailingSlash;
pub use cookies::CookieConfig;
pub use cookies::CookieManager;
pub use cookies::CookieOptions;
pub use cookies::SameSite;
pub use cors::CorsConfig;
pub use error::Error;
pub use error::ErrorContext;
pub use error::ErrorHandlerFn;
pub use error::ErrorHandlerRegistration;
pub use error::HandlerResult;
pub use error::HttpError;
pub use error::JsonResult;
pub use extractor::Service;
pub use middleware::ClientIp;
pub use middleware::RateLimitInfo;
pub use request_id::RequestId;
pub use router::Method;
pub use sanitize::Sanitize;
pub use shutdown::GracefulShutdown;
pub use shutdown::ShutdownPhase;
pub use validate::Validate;
pub use axum;
pub use axum_extra;
pub use chrono;
pub use inventory;
pub use serde;
pub use serde_json;
pub use tokio;
pub use tracing;
pub use tracing_subscriber;
pub use ulid;

Modules§

app
config
cookies
cors
error
extractor
health
logging
middleware
request_id
router
sanitize
shutdown
validate

Structs§

Json
JSON Extractor / Response.

Attribute Macros§

error_handler
Registers a sync function as the application-wide custom error handler.
handler
Registers an async function as an HTTP route handler.
main
Generates the application entry point from an async main function.
module
Groups handlers under a shared URL prefix and optional middleware.

Derive Macros§

Sanitize
Derives the modo::sanitize::Sanitize trait for a named-field struct.
Validate
Derives the modo::validate::Validate trait for a named-field struct.