Skip to main content

parse_setup_value

Function parse_setup_value 

Source
pub fn parse_setup_value(
    field: &SetupFieldDescriptor,
    raw: &str,
) -> Result<SafeSetupValue, SetupValueParseError>
Expand description

Parses text according to a setup field’s type and validation constraints.

Boolean input is case-insensitive and accepts true, yes, y, and 1 for true and false, no, n, and 0 for false.