pub struct TextSearchResult {
pub id: String,
pub score: f32,
pub text: Option<String>,
pub metadata: Option<HashMap<String, Value>>,
pub vector: Option<Vec<f32>>,
}Expand description
A single text search result.
Fields§
§id: StringDocument ID.
score: f32Similarity score.
text: Option<String>Original text (if include_text was true).
metadata: Option<HashMap<String, Value>>Document metadata.
vector: Option<Vec<f32>>Vector values (if include_vectors was true).
Trait Implementations§
Source§impl Clone for TextSearchResult
impl Clone for TextSearchResult
Source§fn clone(&self) -> TextSearchResult
fn clone(&self) -> TextSearchResult
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 TextSearchResult
impl Debug for TextSearchResult
Source§impl<'de> Deserialize<'de> for TextSearchResult
impl<'de> Deserialize<'de> for TextSearchResult
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 TextSearchResult
impl RefUnwindSafe for TextSearchResult
impl Send for TextSearchResult
impl Sync for TextSearchResult
impl Unpin for TextSearchResult
impl UnsafeUnpin for TextSearchResult
impl UnwindSafe for TextSearchResult
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