wtx 0.44.2

A collection of different transport implementations and related tools focused primarily on web technologies.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
/// Router paths
#[derive(Clone, 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 const fn new(full_path: &'static str, value: T) -> Self {
    Self { full_path, value }
  }
}