pub struct FullTextMatch {
pub id: String,
pub score: f32,
pub text: Option<String>,
pub metadata: Option<HashMap<String, Value>>,
}Expand description
Full-text search result
Fields§
§id: StringDocument ID
score: f32BM25 score
text: Option<String>Document text
metadata: Option<HashMap<String, Value>>Optional metadata
Trait Implementations§
Source§impl Clone for FullTextMatch
impl Clone for FullTextMatch
Source§fn clone(&self) -> FullTextMatch
fn clone(&self) -> FullTextMatch
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 FullTextMatch
impl Debug for FullTextMatch
Source§impl<'de> Deserialize<'de> for FullTextMatch
impl<'de> Deserialize<'de> for FullTextMatch
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
Auto Trait Implementations§
impl Freeze for FullTextMatch
impl RefUnwindSafe for FullTextMatch
impl Send for FullTextMatch
impl Sync for FullTextMatch
impl Unpin for FullTextMatch
impl UnsafeUnpin for FullTextMatch
impl UnwindSafe for FullTextMatch
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