TypedUrl

Trait TypedUrl 

Source
pub trait TypedUrl: Sized {
    type Route: Display;

    // Required methods
    fn routes() -> &'static [Self::Route];
    fn from_route(
        route: &Self::Route,
        args: &HashMap<String, Value>,
    ) -> Option<Self>;
}

Required Associated Types§

Required Methods§

Source

fn routes() -> &'static [Self::Route]

Source

fn from_route( route: &Self::Route, args: &HashMap<String, Value>, ) -> Option<Self>

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§