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