Skip to main content

apply_form

Function apply_form 

Source
pub fn apply_form(
    form: &Form,
    loaded: &FormValues,
    overrides: &FormValues,
    drop_rows: &[String],
) -> Result<FormValues, CommandError>
Expand description

apply for any form. A non-split, non-carried rows field given in overrides (even empty) replaces the loaded list; otherwise the loaded one is kept.

ยงErrors

CommandError::Argument naming a row key that was not loaded, or CommandError::Command for a rows field the loaded payload lacks.