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