#[derive(Clone)] pub enum StoreKey { Pool, } impl StoreKey { pub fn get_unique_pool_key(&self, key: &str) -> String { format!("{}:{}", self.unique_id(), key) } pub fn unique_id(&self) -> String { match self { StoreKey::Pool => "Pool".to_string(), } } }