Skip to main content

RouteInfo

Trait RouteInfo 

Source
pub trait RouteInfo: Display + Debug {
    // Required methods
    fn path(&self) -> &str;
    fn is_wildcard(&self) -> bool;
}
Expand description

Information about a parsed route.

Required Methods§

Source

fn path(&self) -> &str

Returns the route path without any wildcard annotation.

Source

fn is_wildcard(&self) -> bool

Returns true if this route has a trailing wildcard.

Implementors§