Function shopify_function::run_function_with_input

source ยท
pub fn run_function_with_input<'a, F, P: Deserialize<'a>, O>(
    f: F,
    payload: &'a 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.