pub trait Collection: Send + Sync {
// Required methods
fn all(&self) -> Vec<(&str, &str)>;
fn get(&self, key: &str) -> Option<Vec<&str>>;
fn get_regex(&self, pattern: &Regex) -> Vec<(&str, &str)>;
fn count(&self) -> usize;
fn count_key(&self, key: &str) -> usize;
}Expand description
A collection of key-value pairs.