Skip to main content

map_values

Function map_values 

Source
pub fn map_values(
    form: &Form,
    values: &FormValues,
    fetched: &Fetched,
    flag_prefix: &str,
) -> Result<FormValues, CommandError>
Expand description

values with every non-empty select value replaced by its id in fetched; errors name a field as {flag_prefix}{key}.

ยงErrors

CommandError::Argument for an unknown or ambiguous value.