Struct mimeograph_router::ConstRoute[][src]

pub struct ConstRoute<T, U> where
    T: 'static,
    U: 'static, 
{ pub method: &'static str, pub segments: &'static [Segment], pub args_count: usize, pub has_glob: bool, pub wrapper: &'static (dyn Fn(T, &[&str]) + 'static), }

Fields

method: &'static str

All uppercase HTTP verb: GET, PUT, POST, DELETE, etc

segments: &'static [Segment]

The route’s path segments

args_count: usize

How many Segment::Argument(..) this route has

has_glob: bool

If the route globs (**) the end of the path

wrapper: &'static (dyn Fn(T, &[&str]) + 'static)

A wrapper Fn that will invoke the route and pass in args

Implementations

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.