pub struct DocData {
pub content: String,
pub doc_len: i64,
pub term_pos: Vec<TermPositions>,
pub term_freqs: Vec<TermFrequencyEntry>,
pub domain_doc_len: DomainLengths,
pub derived_terms: Vec<DerivedTerm>,
pub derived_spans: Vec<DerivedSpan>,
}Fields§
§content: String§doc_len: i64Document length in normalized tokens.
term_pos: Vec<TermPositions>Term positions for original-domain tokens (by term id).
term_freqs: Vec<TermFrequencyEntry>Per-term frequencies for removal and length accounting.
domain_doc_len: DomainLengths§derived_terms: Vec<DerivedTerm>Mapping from derived term id -> base term id for highlighting.
derived_spans: Vec<DerivedSpan>Fallback spans for derived terms that lack base term positions.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for DocData
impl<'de> Deserialize<'de> for DocData
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 DocData
impl RefUnwindSafe for DocData
impl Send for DocData
impl Sync for DocData
impl Unpin for DocData
impl UnsafeUnpin for DocData
impl UnwindSafe for DocData
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