pub fn page_from_js<'a, C: Context<'a>>(
    cx: &mut C,
    page_js: Handle<'_, JsObject>
) -> NeonResult<PageData>
Expand description

Function to convert JsObject of PageData to PageData

Arguments

  • cx - Neon FunctionContext
  • page_js - Neon JsObject

Returns

  • PageData - PageData

Errors

  • Throws a Neon error if the page cannot be converted