pub fn save_config(filename: &str, config: &MsgFormat) -> Result<(), io::Error> {
    let json_config = serde_json::to_string(config)?;
    fs::write(filename, json_config)?;
    Ok(())
}
/// Write configuration object to a json file
Write configuration object to a json file
Write configuration object to a json file
pub fn save_config(filename: &str, config: &MsgFormat) -> Result<(), io::Error> {
    let json_config = serde_json::to_string(config)?;
    fs::write(filename, json_config)?;
    Ok(())
}
pub fn save_config ( filename : & str , config : & MsgFormat ) -> Result < ( ) , io :: Error > { let json_config = serde_json :: to_string ( config ) ? ; fs :: write ( filename , json_config ) ? ; Ok ( ( ) ) }
Write configuration object to a json file
Write configuration object to a json file
filename
&str
config
&MsgFormat
filename
&str
config
&MsgFormat