use std::collections::HashMap; fn adminvector() -> Vec { vec![String::from("ModulatingForce")] } enum userRole { Chatter, Mod(String), // String specifies Channel SupMod(String), // String specifies Channel Broadcaster, BotAdmin, } pub struct IdentityManager { specialRolesUsers : HashMap>, } impl IdentityManager { pub fn init() -> IdentityManager { let mut a = HashMap::new(); for admn in adminvector() { a.insert(admn.to_lowercase(),vec![userRole::BotAdmin]); }; IdentityManager { specialRolesUsers : a, } } }