#[non_exhaustive]pub struct IndexEntry {
pub fact_id: FactId,
pub entities: Vec<EntityRef>,
pub text: String,
pub valid_from: Option<DateTime<Utc>>,
}Expand description
One element of a batched KnowledgeGraph::index_many call.
Mirrors the per-fact arguments of KnowledgeGraph::index so
backends that natively support multi-fact UNWIND / bulk-insert can
flush an entire batch in O(1) round-trips instead of O(N).
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.fact_id: FactId§entities: Vec<EntityRef>§text: StringFact text — passed for parity with single index. Backends
that don’t store the text on the graph node can ignore it.
valid_from: Option<DateTime<Utc>>World-time validity. None defaults to recorded_at.
Implementations§
Trait Implementations§
Source§impl Clone for IndexEntry
impl Clone for IndexEntry
Source§fn clone(&self) -> IndexEntry
fn clone(&self) -> IndexEntry
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 moreAuto Trait Implementations§
impl Freeze for IndexEntry
impl RefUnwindSafe for IndexEntry
impl Send for IndexEntry
impl Sync for IndexEntry
impl Unpin for IndexEntry
impl UnsafeUnpin for IndexEntry
impl UnwindSafe for IndexEntry
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