Expand description
Usage :
#[derive(Serialize, Deserialize, Debug, Default)]
#[serde(default)]
struct Config {
title: String,
}
fn main() {
let mut cfg = Config::from_toml_file("config.toml").unwrap();
cfg.title = String::from("Jean");
cfg.save_to_file("config.toml").unwrap();
}
Traitsยง
- From
Toml File - This trait represent anything that can be parsed from toml file