1 2 3 4 5 6
use super::config::Config; pub trait ConfigRepository { fn load(&self) -> Config; fn save(&self, config: &Config) -> Result<(), std::io::Error>; }