pub struct SearchConfig {
pub k: usize,
pub temperature: f32,
}Expand description
Query configuration for differentiable search
Fields§
§k: usizeNumber of top results to return
temperature: f32Temperature for softmax (lower = sharper, higher = smoother)
Implementations§
Trait Implementations§
Source§impl Clone for SearchConfig
impl Clone for SearchConfig
Source§fn clone(&self) -> SearchConfig
fn clone(&self) -> SearchConfig
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 SearchConfig
impl Debug for SearchConfig
Source§impl<'de> Deserialize<'de> for SearchConfig
impl<'de> Deserialize<'de> for SearchConfig
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl From<SearchConfig> for JsValue
impl From<SearchConfig> for JsValue
Source§fn from(value: SearchConfig) -> Self
fn from(value: SearchConfig) -> Self
Converts to this type from the input type.
Source§impl FromWasmAbi for SearchConfig
impl FromWasmAbi for SearchConfig
Source§impl IntoWasmAbi for SearchConfig
impl IntoWasmAbi for SearchConfig
Source§impl LongRefFromWasmAbi for SearchConfig
impl LongRefFromWasmAbi for SearchConfig
Source§impl OptionFromWasmAbi for SearchConfig
impl OptionFromWasmAbi for SearchConfig
Source§impl OptionIntoWasmAbi for SearchConfig
impl OptionIntoWasmAbi for SearchConfig
Source§impl RefFromWasmAbi for SearchConfig
impl RefFromWasmAbi for SearchConfig
Source§type Anchor = RcRef<SearchConfig>
type Anchor = RcRef<SearchConfig>
The type that holds the reference to
Self for the duration of the
invocation of the function that has an &Self parameter. This is
required to ensure that the lifetimes don’t persist beyond one function
call, and so that they remain anonymous.Source§impl RefMutFromWasmAbi for SearchConfig
impl RefMutFromWasmAbi for SearchConfig
Source§impl Serialize for SearchConfig
impl Serialize for SearchConfig
Source§impl TryFromJsValue for SearchConfig
impl TryFromJsValue for SearchConfig
Source§impl VectorFromWasmAbi for SearchConfig
impl VectorFromWasmAbi for SearchConfig
type Abi = <Box<[JsValue]> as FromWasmAbi>::Abi
unsafe fn vector_from_abi(js: Self::Abi) -> Box<[SearchConfig]>
Source§impl VectorIntoWasmAbi for SearchConfig
impl VectorIntoWasmAbi for SearchConfig
type Abi = <Box<[JsValue]> as IntoWasmAbi>::Abi
fn vector_into_abi(vector: Box<[SearchConfig]>) -> Self::Abi
Source§impl WasmDescribeVector for SearchConfig
impl WasmDescribeVector for SearchConfig
impl SupportsConstructor for SearchConfig
impl SupportsInstanceProperty for SearchConfig
impl SupportsStaticProperty for SearchConfig
Auto Trait Implementations§
impl Freeze for SearchConfig
impl RefUnwindSafe for SearchConfig
impl Send for SearchConfig
impl Sync for SearchConfig
impl Unpin for SearchConfig
impl UnsafeUnpin for SearchConfig
impl UnwindSafe for SearchConfig
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> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> ReturnWasmAbi for Twhere
T: IntoWasmAbi,
impl<T> ReturnWasmAbi for Twhere
T: IntoWasmAbi,
Source§type Abi = <T as IntoWasmAbi>::Abi
type Abi = <T as IntoWasmAbi>::Abi
Same as
IntoWasmAbi::AbiSource§fn return_abi(self) -> <T as ReturnWasmAbi>::Abi
fn return_abi(self) -> <T as ReturnWasmAbi>::Abi
Same as
IntoWasmAbi::into_abi, except that it may throw and never
return in the case of Err.