✨ Examples
from_table_struct!;
let parsed = from_file;
let first_table: SomeTable = parsed.table.unwrap;
📜 License
This project is licensed under the MIT License.
#[derive(Debug)]
#[allow(unused)]
struct SomeTable {
string: String,
number: i32,
float: f64,
boolean: bool,
}
from_table_struct!(SomeTable {
string: String,
number: i32,
float: f64,
boolean: bool,
});
let parsed = ParseConfig::from_file("path/to/file.toml".to_string());
let first_table: SomeTable = parsed.table("first_table").unwrap();
This project is licensed under the MIT License.