#[non_exhaustive]pub struct KnowledgeSearchHit {Show 27 fields
pub source_uri: String,
pub chunk_idx: Integer,
pub content: String,
pub tags: Vec<String>,
pub distance: f64,
pub similarity: f64,
pub namespace: String,
pub ingested_at: Option<String>,
pub section_path: Vec<String>,
pub section: String,
pub lexical_score: f64,
pub score: f64,
pub source: String,
pub span: String,
pub span_start: Integer,
pub span_end: Integer,
pub span_similarity: f64,
pub siblings_folded: Integer,
pub agent: String,
pub session_id: String,
pub source_class: String,
pub revision: Integer,
pub format: String,
pub block_type: String,
pub locator: Option<HashMap<String, Value>>,
pub keys_matched: Vec<String>,
pub noise: bool,
}Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.source_uri: String§chunk_idx: Integer§content: String§distance: f64§similarity: f64§namespace: String§ingested_at: Option<String>§section_path: Vec<String>§section: String§lexical_score: f64§score: f64§source: String§span: String§span_start: Integer§span_end: Integer§span_similarity: f64§siblings_folded: Integer§agent: String§session_id: String§source_class: String§revision: Integer§format: String§block_type: String§locator: Option<HashMap<String, Value>>§keys_matched: Vec<String>§noise: boolTrait Implementations§
Source§impl Clone for KnowledgeSearchHit
impl Clone for KnowledgeSearchHit
Source§impl Debug for KnowledgeSearchHit
impl Debug for KnowledgeSearchHit
Source§impl<'de> Deserialize<'de> for KnowledgeSearchHit
impl<'de> Deserialize<'de> for KnowledgeSearchHit
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 PartialEq for KnowledgeSearchHit
impl PartialEq for KnowledgeSearchHit
Source§impl Serialize for KnowledgeSearchHit
impl Serialize for KnowledgeSearchHit
impl StructuralPartialEq for KnowledgeSearchHit
Auto Trait Implementations§
impl Forget for KnowledgeSearchHit
impl Freeze for KnowledgeSearchHit
impl Move for KnowledgeSearchHit
impl RefUnwindSafe for KnowledgeSearchHit
impl Send for KnowledgeSearchHit
impl Sync for KnowledgeSearchHit
impl Unpin for KnowledgeSearchHit
impl UnsafeUnpin for KnowledgeSearchHit
impl UnwindSafe for KnowledgeSearchHit
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