pub struct IntelligentSearchResult {
pub id: String,
pub score: f32,
pub content: String,
pub metadata: Option<HashMap<String, Value>>,
pub collection: Option<String>,
pub query_used: Option<String>,
}Expand description
Intelligent search result
Fields§
§id: StringResult ID
score: f32Similarity score
content: StringResult content
metadata: Option<HashMap<String, Value>>Metadata
collection: Option<String>Collection name
query_used: Option<String>Query used for this result
Trait Implementations§
Source§impl Clone for IntelligentSearchResult
impl Clone for IntelligentSearchResult
Source§fn clone(&self) -> IntelligentSearchResult
fn clone(&self) -> IntelligentSearchResult
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 IntelligentSearchResult
impl Debug for IntelligentSearchResult
Source§impl<'de> Deserialize<'de> for IntelligentSearchResult
impl<'de> Deserialize<'de> for IntelligentSearchResult
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 IntelligentSearchResult
impl RefUnwindSafe for IntelligentSearchResult
impl Send for IntelligentSearchResult
impl Sync for IntelligentSearchResult
impl Unpin for IntelligentSearchResult
impl UnwindSafe for IntelligentSearchResult
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