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
impl<T, U> ConstRoute<T, U> where
T: 'static,
U: 'static,
[src]
impl<T, U> ConstRoute<T, U> where
T: 'static,
U: 'static,
[src]