pub struct DocData {
pub content: String,
pub doc_len: i64,
pub term_pos: HashMap<String, Vec<(u32, u32)>>,
pub term_freqs: HashMap<String, TermFrequency>,
pub domain_doc_len: DomainLengths,
pub derived_terms: HashMap<String, Vec<(u32, u32)>>,
}Fields§
§content: String§doc_len: i64Document length in normalized tokens.
term_pos: HashMap<String, Vec<(u32, u32)>>Term positions for original-domain tokens.
term_freqs: HashMap<String, TermFrequency>§domain_doc_len: DomainLengths§derived_terms: HashMap<String, Vec<(u32, u32)>>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 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