Struct nickel::router::router::RouteResult [] [src]

pub struct RouteResult<'mw, D: 'mw = ()> {
    pub route: &'mw Route<D>,
    // some fields omitted
}

A RouteResult is what the router returns when match_route is called. It contains the matched route and also a params property holding a HashMap with the keys being the variable names and the value being the evaluated string

Fields

route: &'mw Route<D>

Methods

impl<'mw, D> RouteResult<'mw, D>
[src]

fn param(&self, key: &str) -> Option<&str>