pub trait PersistableConfig: Serialize + DeserializeOwned {
    // Provided methods
    fn load_config<P: AsRef<Path>>(path: P) -> Result<Self, Error> { ... }
    fn save_config<P: AsRef<Path>>(&self, output_file: P) -> Result<(), Error> { ... }
    fn parse(serialized: &str) -> Result<Self, Error> { ... }
}

Provided Methods§

source

fn load_config<P: AsRef<Path>>(path: P) -> Result<Self, Error>

source

fn save_config<P: AsRef<Path>>(&self, output_file: P) -> Result<(), Error>

source

fn parse(serialized: &str) -> Result<Self, Error>

Implementors§