pub struct ProductSearchResultOutput {
pub product: ProductOutput,
pub distance: f64,
pub score: f64,
}Fields§
§product: ProductOutput§distance: f64§score: f64Trait Implementations§
Source§impl Clone for ProductSearchResultOutput
impl Clone for ProductSearchResultOutput
Source§fn clone(&self) -> ProductSearchResultOutput
fn clone(&self) -> ProductSearchResultOutput
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 FromNapiValue for ProductSearchResultOutput
impl FromNapiValue for ProductSearchResultOutput
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 ProductSearchResultOutput
impl ToNapiValue for ProductSearchResultOutput
Source§unsafe fn to_napi_value(
env: napi_env,
val: ProductSearchResultOutput,
) -> Result<napi_value>
unsafe fn to_napi_value( env: napi_env, val: ProductSearchResultOutput, ) -> Result<napi_value>
Safety Read more
Source§impl TypeName for ProductSearchResultOutput
impl TypeName for ProductSearchResultOutput
Source§impl ValidateNapiValue for ProductSearchResultOutput
impl ValidateNapiValue for ProductSearchResultOutput
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 ProductSearchResultOutput
impl RefUnwindSafe for ProductSearchResultOutput
impl Send for ProductSearchResultOutput
impl Sync for ProductSearchResultOutput
impl Unpin for ProductSearchResultOutput
impl UnsafeUnpin for ProductSearchResultOutput
impl UnwindSafe for ProductSearchResultOutput
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