[][src]Trait rooty::Routes

pub trait Routes {
    type UrlDisplay: Display;
    fn url(&self) -> &Self::UrlDisplay;
fn parse_url(url: &str) -> Result<Self, NotFound>; }

Implemented for types that can be the routes of a web application

Associated Types

type UrlDisplay: Display

A type that knows how to display the url for this route.

Loading content...

Required methods

fn url(&self) -> &Self::UrlDisplay

Get the url

fn parse_url(url: &str) -> Result<Self, NotFound>

Parse a url

Loading content...

Implementors

Loading content...