pub fn key_pair_from_js<'a, C: Context<'a>>(
    cx: &mut C,
    key_pair_js: Handle<'_, JsObject>
) -> NeonResult<GraphKeyPair>
Expand description

Function to convert JsObject of GraphKeyPair to GraphKeyPair

Arguments

  • cx - Neon FunctionContext
  • key_pair_js - Neon JsObject

Returns

  • GraphKeyPair - GraphKeyPair

Errors

  • Throws a Neon error if the key pair cannot be converted