Skip to main content

ask_form

Function ask_form 

Source
pub async fn ask_form<D>(
    user_id: Uuid,
    pairs: Vec<(String, String)>,
    form: &'static Form,
    pick: fn(Outcome) -> Option<D>,
) -> Result<Asked<D>, WebError>
Expand description

The empty dates take the report defaults the form then shows; pick takes the form’s report out of the outcome.