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

pub struct Route<D = ()> {
    pub method: Method,
    pub handler: Box<dyn 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: Methodhandler: Box<dyn Middleware<D> + Send + Sync + 'static>

Auto Trait Implementations

impl<D> Send for Route<D>

impl<D> Sync for Route<D>

Blanket Implementations

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

impl<T> From for 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, 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> BorrowMut for T where
    T: ?Sized
[src]

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