pub fn actions_from_js<'a, C: Context<'a>>(
    cx: &mut C,
    actions_js: Handle<'_, JsArray>
) -> NeonResult<Vec<Action>>
Expand description

Function to convert JSArray of Action to Vec<Action>

Arguments

  • cx - Neon FunctionContext
  • actions_js - Neon JsArray of JsObjects

Returns

  • Vec<Action>

Errors

  • Throws a Neon error if the actions cannot be converted