1 2 3 4 5 6 7 8 9 10 11 12 13 14
/// Router paths #[derive(Debug)] pub struct PathParams<T> { pub(crate) full_path: &'static str, pub(crate) value: T, } impl<T> PathParams<T> { /// Creates a new instance #[inline] pub fn new(full_path: &'static str, value: T) -> Self { Self { full_path, value } } }