pub trait TypedPath:
Serialize
+ DeserializeOwned
+ Send
+ Sync
+ 'static {
const PATH: &'static str;
// Required method
fn to_uri(&self) -> String;
}Expand description
Trait for defining typed paths
This trait allows structs to define their own path pattern and URL generation logic.
It is usually implemented via #[derive(TypedPath)].
Required Associated Constants§
Required Methods§
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.