1 2 3 4 5 6 7 8 9 10
pub mod local; pub mod memory; use crate::types::Link; use std::collections::HashMap; pub trait DataStore { fn get_links(&self) -> HashMap<String, Link>; fn set_links(&mut self, links: &HashMap<String, Link>); }