Function read_toml_file
Source pub fn read_toml_file<T>(path: &Path) -> Result<T>
Expand description
Reads and parses a TOML file.
§Arguments
path - The path to the TOML file
§Type Parameters
T - The type to deserialize into (must implement DeserializeOwned)
§Returns
The parsed TOML data
§Errors
Returns an error if the file cannot be read or parsed