pub struct DocumentFacts {
pub format: DocumentFormat,
pub text: String,
pub facts: Vec<DocumentFact>,
pub completeness: DocumentCompleteness,
pub provenance: DocumentParserProvenance,
}Expand description
Complete bounded text and provenance extracted from one document.
Fields§
§format: DocumentFormatFormat admitted by magic and language/extension checks.
text: StringExtracted text with preserved paragraph and run layout for the text index.
facts: Vec<DocumentFact>Exact text facts used to build graph evidence.
completeness: DocumentCompletenessWhether the supported part was fully examined.
provenance: DocumentParserProvenanceParser provenance for audit and graph evidence.
Implementations§
Source§impl DocumentFacts
impl DocumentFacts
Sourcepub fn symbol_graph(&self, path: &str, language: Option<&str>) -> SymbolGraph
pub fn symbol_graph(&self, path: &str, language: Option<&str>) -> SymbolGraph
Project exact document facts into the existing sparse symbol graph.
Trait Implementations§
Source§impl Clone for DocumentFacts
impl Clone for DocumentFacts
Source§fn clone(&self) -> DocumentFacts
fn clone(&self) -> DocumentFacts
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 DocumentFacts
impl Debug for DocumentFacts
impl Eq for DocumentFacts
Source§impl PartialEq for DocumentFacts
impl PartialEq for DocumentFacts
Source§fn eq(&self, other: &DocumentFacts) -> bool
fn eq(&self, other: &DocumentFacts) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for DocumentFacts
Auto Trait Implementations§
impl Freeze for DocumentFacts
impl RefUnwindSafe for DocumentFacts
impl Send for DocumentFacts
impl Sync for DocumentFacts
impl Unpin for DocumentFacts
impl UnsafeUnpin for DocumentFacts
impl UnwindSafe for DocumentFacts
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.