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

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]

pub fn param(&self, key: &str) -> Option<&str>
[src]

Auto Trait Implementations

impl<'mw, D> Send for RouteResult<'mw, D>

impl<'mw, D> Sync for RouteResult<'mw, D>

Blanket Implementations

impl<T> From for T
[src]

impl<T, U> Into for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom for T where
    T: From<U>, 
[src]

type Error = !

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

impl<T> Borrow for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> BorrowMut for T where
    T: ?Sized
[src]

impl<T, U> TryInto for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

impl<T> Typeable for T where
    T: Any

fn get_type(&self) -> TypeId

Get the TypeId of this object.

impl<T> UnsafeAny for T where
    T: Any