pub trait CoauthorRepo {
    // Required methods
    fn list(&self, show_keys: bool) -> Result<Vec<String>, Box<dyn Error>>;
    fn list_mob(&self) -> Result<Vec<String>, Box<dyn Error>>;
    fn get(&self, key: &str) -> Result<Option<String>, Box<dyn Error>>;
    fn remove(&self, key: &str) -> Result<(), Box<dyn Error>>;
    fn add(&self, key: &str, coauthor: &str) -> Result<(), Box<dyn Error>>;
    fn add_to_mob(&self, coauthor: &str) -> Result<(), Box<dyn Error>>;
    fn clear_mob(&self) -> Result<(), Box<dyn Error>>;
}

Required Methods§

source

fn list(&self, show_keys: bool) -> Result<Vec<String>, Box<dyn Error>>

source

fn list_mob(&self) -> Result<Vec<String>, Box<dyn Error>>

source

fn get(&self, key: &str) -> Result<Option<String>, Box<dyn Error>>

source

fn remove(&self, key: &str) -> Result<(), Box<dyn Error>>

source

fn add(&self, key: &str, coauthor: &str) -> Result<(), Box<dyn Error>>

source

fn add_to_mob(&self, coauthor: &str) -> Result<(), Box<dyn Error>>

source

fn clear_mob(&self) -> Result<(), Box<dyn Error>>

Implementors§