Skip to main content

load_toml_file_raw

Function load_toml_file_raw 

Source
pub fn load_toml_file_raw(
    path: &Path,
) -> Result<Option<NestedTomlTable>, ConfigError>
Expand description

Read a TOML file and return the parsed table wrapped in [NestedTomlTable] (without flattening).

Used internally by #[derive(Config)]-generated code to extract sub-tables for #[param(nested)] fields. The result is opaque so toml’s types do not leak into the public API.

Returns Ok(None) if the file does not exist (not an error).