Function run_function_with_input

Source
pub fn run_function_with_input<F, P: Deserialize, O>(
    f: F,
    payload: &str,
) -> Result<O>
where F: Fn(P) -> Result<O>,
Expand description

Runs the given function f with the invocation payload, returning the deserialized output. This function is provided as a helper when writing tests.