Skip to main content

parse_value

Function parse_value 

Source
pub fn parse_value(raw: &str) -> Value
Expand description

Parse one value as a person typed it.

TOML first — so 3, true, ["a", "b"] and 0.5 mean what they look like — and a bare word that is not valid TOML is a string, so config set provider.model gemma-4-12b does what it says instead of failing on a missing quote. That is the one ambiguity here, and it is settled in the direction a person typing a value expects.