ini_parser/
ini_file.rs

1use std::collections::HashMap;
2
3#[derive(Debug)]
4/// Represents an INI file with sections and key-value pairs.
5pub struct IniFile {
6    /// The sections of the INI file, each containing key-value pairs.
7    pub sections: HashMap<String, Section>,
8}
9
10#[derive(Debug)]
11/// Represents a section in an INI file.
12///
13/// A section contains key-value pairs and can optionally have nested sections.
14pub struct Section {
15    pub name: String,
16    pub key_values: HashMap<String, String>,
17    pub nested_sections: HashMap<String, Section>, // Add nested sections
18}