pub struct JsHyperedgeResult {
pub id: String,
pub score: f64,
}Expand description
Hyperedge search result
Fields§
§id: StringHyperedge ID
score: f64Similarity score
Trait Implementations§
Source§impl Clone for JsHyperedgeResult
impl Clone for JsHyperedgeResult
Source§fn clone(&self) -> JsHyperedgeResult
fn clone(&self) -> JsHyperedgeResult
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for JsHyperedgeResult
impl Debug for JsHyperedgeResult
Source§impl FromNapiValue for JsHyperedgeResult
impl FromNapiValue for JsHyperedgeResult
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 JsHyperedgeResult
impl ToNapiValue for JsHyperedgeResult
Source§unsafe fn to_napi_value(
env: napi_env,
val: JsHyperedgeResult,
) -> Result<napi_value>
unsafe fn to_napi_value( env: napi_env, val: JsHyperedgeResult, ) -> Result<napi_value>
Safety Read more
Source§impl TypeName for JsHyperedgeResult
impl TypeName for JsHyperedgeResult
Source§impl ValidateNapiValue for JsHyperedgeResult
impl ValidateNapiValue for JsHyperedgeResult
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 JsHyperedgeResult
impl RefUnwindSafe for JsHyperedgeResult
impl Send for JsHyperedgeResult
impl Sync for JsHyperedgeResult
impl Unpin for JsHyperedgeResult
impl UnwindSafe for JsHyperedgeResult
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more