1 2 3 4 5 6 7 8 9 10
#[derive(Debug, Hash, Eq, PartialEq)] pub struct Alias { pub id: String, } impl Alias { pub fn new(str: &str) -> Self { Self { id: str.to_owned() } } }