pub fn action_from_js<'a, C: Context<'a>>(
    cx: &mut C,
    action_js: Handle<'_, JsObject>
) -> NeonResult<Action>
Expand description

Function to convert JsObject of Action to Action

Arguments

  • cx - Neon FunctionContext
  • action_js - Neon JsObject

Returns

  • Action - Action

Errors

  • Throws a Neon error if the action cannot be converted