1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
use core::{
    cmp::PartialEq,
    fmt::{Debug, Display},
    str::FromStr,
};

//
#[derive(Debug, Clone, Default)]
pub struct PathParam<T>(pub T)
where
    T: FromStr + Display + Clone + Default;

impl<T> PartialEq for PathParam<T>
where
    T: FromStr + Display + Clone + Default + PartialEq,
{
    fn eq(&self, other: &Self) -> bool {
        self.0 == other.0
    }
}