Skip to main content

Module typed_path

Module typed_path 

Source
Expand description

Type-safe path definitions for HTTP routes

This module provides compile-time and runtime validation for route paths, preventing issues like using :param syntax instead of {param} in axum 0.7+.

Modules§

segments
Predefined path segments for common patterns

Structs§

TypedPath
A type-safe path that validates the format at construction time

Enums§

PathValidationError
Error type for path validation failures

Functions§

validate_path
Validates that a path uses the correct axum 0.7+ syntax {param} instead of :param