pub struct FileFactShard {
pub source_uri: String,
pub file_id: FileId,
pub content_hash: u64,
pub anchors_hash: Option<u64>,
pub entities_hash: Option<u64>,
pub occurrences_hash: Option<u64>,
pub edges_hash: Option<u64>,
pub anchors: Vec<AnchorFact>,
pub entities: Vec<EntityFact>,
pub occurrences: Vec<OccurrenceFact>,
pub edges: Vec<EdgeFact>,
}Expand description
Write-through semantic fact storage for one indexed file.
Fields§
§source_uri: StringCanonical file URI for this shard.
file_id: FileIdStable file identifier derived from normalized URI.
content_hash: u64Whole-file content hash used for stale-shard replacement.
anchors_hash: Option<u64>Optional per-category hashes for change diagnostics.
entities_hash: Option<u64>Optional per-category hashes for change diagnostics.
occurrences_hash: Option<u64>Optional per-category hashes for change diagnostics.
edges_hash: Option<u64>Optional per-category hashes for change diagnostics.
anchors: Vec<AnchorFact>Anchor facts for this file.
entities: Vec<EntityFact>Entity facts for this file.
occurrences: Vec<OccurrenceFact>Occurrence facts for this file.
edges: Vec<EdgeFact>Edge facts for this file.
Trait Implementations§
Source§impl Clone for FileFactShard
impl Clone for FileFactShard
Source§fn clone(&self) -> FileFactShard
fn clone(&self) -> FileFactShard
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 moreAuto Trait Implementations§
impl Freeze for FileFactShard
impl RefUnwindSafe for FileFactShard
impl Send for FileFactShard
impl Sync for FileFactShard
impl Unpin for FileFactShard
impl UnsafeUnpin for FileFactShard
impl UnwindSafe for FileFactShard
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