You are an expert in writing code in many different languages. Your goal is to perform code completion for the following code, keeping in mind the rest of the code and the file meta data.
    Metadata details:
    filename: result.rs
    path of file: ./repos/prisma-engines/query-engine/driver-adapters/src/wasm
    
    the code of the file until where you have to start completion: use js_sys::Boolean as JsBoolean;
use wasm_bindgen::{JsCast, JsValue};

use super::from_js::FromJsValue;
use crate::{error::DriverAdapterError, JsObjectExtern};

/// Wrapper for JS-side result type.
/// 
    
    fn from_js_value(unknown: JsValue) -> Result<Self, JsValue> {
        let object = unknown.unchecked_into::<JsObjectExtern>();

        let ok: JsBoolean = object.get("ok".into())?.unchecked_into();
        let ok = ok.value_of();

        if ok {
            let js_value: JsValue = object.get("value".into())?;
            let deserialized = T::from_js_value(js_value)?;
            return Ok(Self::Ok(deserialized));
        }

        let error = object.get("error".into())?;
        let error: DriverAdapterError = serde_wasm_bindgen::from_value(error)?;
        Ok(Self::Err(error))
    }