1 2 3 4 5 6 7 8
pub mod json; pub mod tomlcodec; pub mod xml; pub trait FormatCodec { fn extract(&self, path: &str) -> anyhow::Result<Option<&str>>; fn replace(&mut self, path: &str, value: &str) -> anyhow::Result<()>; }