Skip to main content

PathParam

Trait PathParam 

Source
pub trait PathParam:
    Send
    + Sync
    + 'static {
    const NAME: &'static str;
}
Expand description

Names a route’s path parameter for FromPath. Write one with path_param!.

Required Associated Constants§

Source

const NAME: &'static str

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§