Skip to main content

parse_str

Function parse_str 

Source
pub fn parse_str(input: &str) -> Result<Config, LoadError>
Expand description

Parse a bootroom.toml string into the raw Config AST.

Performs only TOML syntax and deny_unknown_fields validation; schema-version checking, byte-escape decoding, scenario cross-validation, and CLI override merging live in LoadedConfig::load_from_str / LoadedConfig::load_from_str_with_overrides.

ยงErrors

Returns LoadError for any TOML syntax error or unknown field; the line / col fields carry 1-based span coordinates when the underlying toml crate reports them.