pub enum ImportRecord {
Fact {
content: String,
source: Option<String>,
metadata: Option<Value>,
},
Episode {
document_id: String,
meta: EpisodeMeta,
},
}Expand description
A single record within an import envelope.
Variants§
Fact
A fact (claim/knowledge projection).
Fields
Episode
An episode (causal record) attached to an existing document.
Fields
§
meta: EpisodeMetaEpisode metadata.
Implementations§
Source§impl ImportRecord
impl ImportRecord
Sourcepub fn content_text(&self) -> &str
pub fn content_text(&self) -> &str
Text content for embedding generation.
Trait Implementations§
Source§impl Clone for ImportRecord
impl Clone for ImportRecord
Source§fn clone(&self) -> ImportRecord
fn clone(&self) -> ImportRecord
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 ImportRecord
impl Debug for ImportRecord
Source§impl<'de> Deserialize<'de> for ImportRecord
impl<'de> Deserialize<'de> for ImportRecord
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 ImportRecord
impl RefUnwindSafe for ImportRecord
impl Send for ImportRecord
impl Sync for ImportRecord
impl Unpin for ImportRecord
impl UnsafeUnpin for ImportRecord
impl UnwindSafe for ImportRecord
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