use rand::distr::Alphanumeric; use rand::Rng; pub fn gen_id() -> String { rand::rng().sample_iter(&Alphanumeric).take(5).map(char::from).collect() }