Struct nickel::router::router::Route [] [src]

pub struct Route<D = ()> {
    pub method: Method,
    pub handler: Box<Middleware<D> + Send + Sync + 'static>,
    // some fields omitted
}

A Route is the basic data structure that stores both the path and the handler that gets executed for the route. The path can contain variable pattern such as user/:userid/invoices

Fields

method: Method handler: Box<Middleware<D> + Send + Sync + 'static>