pub struct DracoRowJs {
pub embedding: Vec<f64>,
pub scores: HashMap<String, f64>,
}Expand description
One DRACO training row: a query embedding and the quality each model achieved
on it (model id → quality, 0..1). Matches @metaharness/router’s row shape.
Fields§
§embedding: Vec<f64>§scores: HashMap<String, f64>Trait Implementations§
Source§impl FromNapiValue for DracoRowJs
impl FromNapiValue for DracoRowJs
Source§unsafe fn from_napi_value(env: napi_env, napi_val: napi_value) -> Result<Self>
unsafe fn from_napi_value(env: napi_env, napi_val: napi_value) -> Result<Self>
Safety Read more
fn from_unknown(value: JsUnknown) -> Result<Self, Error>
Source§impl ToNapiValue for DracoRowJs
impl ToNapiValue for DracoRowJs
Source§unsafe fn to_napi_value(env: napi_env, val: DracoRowJs) -> Result<napi_value>
unsafe fn to_napi_value(env: napi_env, val: DracoRowJs) -> Result<napi_value>
Safety Read more
Source§impl TypeName for DracoRowJs
impl TypeName for DracoRowJs
Source§impl ValidateNapiValue for DracoRowJs
impl ValidateNapiValue for DracoRowJs
Source§unsafe fn validate(
env: *mut napi_env__,
napi_val: *mut napi_value__,
) -> Result<*mut napi_value__, Error>
unsafe fn validate( env: *mut napi_env__, napi_val: *mut napi_value__, ) -> Result<*mut napi_value__, Error>
Safety Read more
Auto Trait Implementations§
impl Freeze for DracoRowJs
impl RefUnwindSafe for DracoRowJs
impl Send for DracoRowJs
impl Sync for DracoRowJs
impl Unpin for DracoRowJs
impl UnsafeUnpin for DracoRowJs
impl UnwindSafe for DracoRowJs
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more