pub struct RankByInput(pub RankBy);Expand description
Input format for rank_by that handles JSON array syntax Examples:
- [“vector”, “ANN”, [0.1, 0.2, 0.3]]
- [“text”, “BM25”, “search query”]
- [“timestamp”, “desc”]
- [“Sum”, [[“title”, “BM25”, “query”], [“content”, “BM25”, “query”]]]
- [“Product”, 2.0, [“title”, “BM25”, “query”]]
Tuple Fields§
§0: RankByTrait Implementations§
Source§impl Clone for RankByInput
impl Clone for RankByInput
Source§fn clone(&self) -> RankByInput
fn clone(&self) -> RankByInput
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 RankByInput
impl Debug for RankByInput
Source§impl<'de> Deserialize<'de> for RankByInput
impl<'de> Deserialize<'de> for RankByInput
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<Value> for RankByInput
impl From<Value> for RankByInput
Auto Trait Implementations§
impl Freeze for RankByInput
impl RefUnwindSafe for RankByInput
impl Send for RankByInput
impl Sync for RankByInput
impl Unpin for RankByInput
impl UnsafeUnpin for RankByInput
impl UnwindSafe for RankByInput
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