Trait PathExtractor

Source
pub trait PathExtractor<T> {
    // Required method
    fn extract(path: &str, route_pattern: &str) -> Result<T, String>;
}
Expand description

Compile-time path parameter extraction

This trait provides compile-time validation and extraction of path parameters.

Required Methods§

Source

fn extract(path: &str, route_pattern: &str) -> Result<T, String>

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§