#[non_exhaustive]pub struct MemorySearchHit {Show 44 fields
pub memory_key: String,
pub memory_type: String,
pub content_excerpt: String,
pub distance: f64,
pub similarity: f64,
pub below_threshold: Option<bool>,
pub governed: Option<bool>,
pub tags: Option<Vec<String>>,
pub reinforcement_count: Option<u64>,
pub used_count: Option<u64>,
pub used_cited_count: Option<u64>,
pub harm_count: Option<u64>,
pub evidence_count: Option<u64>,
pub acted_count: Option<u64>,
pub pinned: Option<bool>,
pub rank_score: f64,
pub temporal_anchor: String,
pub temporal_confidence: f64,
pub valid_at: String,
pub via_path: Vec<String>,
pub entities: Vec<String>,
pub agent: String,
pub user_id: String,
pub source: String,
pub parent_memory_key: String,
pub status: String,
pub superseded_by: Option<String>,
pub superseded_at: Option<String>,
pub version: u64,
pub created_at: String,
pub namespace: String,
pub code_state: String,
pub body_truncated: bool,
pub next: String,
pub source_resource_id: String,
pub source_class: String,
pub verified: bool,
pub explanation: String,
pub session_id: String,
pub speaker: String,
pub about_other: bool,
pub derived_from: Vec<String>,
pub score_components: HashMap<String, f64>,
pub resolved_from: Option<String>,
}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.memory_key: String§memory_type: String§content_excerpt: String§distance: f64§similarity: f64§below_threshold: Option<bool>§governed: Option<bool>§reinforcement_count: Option<u64>§used_count: Option<u64>§used_cited_count: Option<u64>§harm_count: Option<u64>§evidence_count: Option<u64>§acted_count: Option<u64>§pinned: Option<bool>§rank_score: f64§temporal_anchor: String§temporal_confidence: f64§valid_at: String§via_path: Vec<String>§entities: Vec<String>§agent: String§user_id: String§source: String§parent_memory_key: String§status: String§superseded_by: Option<String>§superseded_at: Option<String>§version: u64§created_at: String§namespace: String§code_state: String§body_truncated: bool§next: String§source_resource_id: String§source_class: String§verified: bool§explanation: String§session_id: String§speaker: String§about_other: bool§derived_from: Vec<String>§score_components: HashMap<String, f64>§resolved_from: Option<String>Trait Implementations§
Source§impl Clone for MemorySearchHit
impl Clone for MemorySearchHit
Source§impl Debug for MemorySearchHit
impl Debug for MemorySearchHit
Source§impl<'de> Deserialize<'de> for MemorySearchHit
impl<'de> Deserialize<'de> for MemorySearchHit
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 MemorySearchHit
impl PartialEq for MemorySearchHit
Source§impl Serialize for MemorySearchHit
impl Serialize for MemorySearchHit
impl StructuralPartialEq for MemorySearchHit
Auto Trait Implementations§
impl Forget for MemorySearchHit
impl Freeze for MemorySearchHit
impl Move for MemorySearchHit
impl RefUnwindSafe for MemorySearchHit
impl Send for MemorySearchHit
impl Sync for MemorySearchHit
impl Unpin for MemorySearchHit
impl UnsafeUnpin for MemorySearchHit
impl UnwindSafe for MemorySearchHit
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