#[non_exhaustive]pub struct ExtractedPassage {
pub text: String,
pub source_entry_id: String,
pub triggering_terms: Vec<String>,
pub content_hash: String,
}Expand description
One extracted passage and its metadata.
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.text: StringExtracted passage text.
source_entry_id: StringEntry ID this passage came from.
triggering_terms: Vec<String>High-recurrence terms present in this passage.
For passages produced by splitting an over-long merged range, terms are re-evaluated: only terms whose lowercased form appears in the chunk’s sentences are included, not all terms from the original merged window.
content_hash: StringContent hash for within-session deduplication only.
Computed with std::collections::hash_map::DefaultHasher,
which is NOT stable across Rust versions. Do not persist.
Trait Implementations§
Source§impl Clone for ExtractedPassage
impl Clone for ExtractedPassage
Source§fn clone(&self) -> ExtractedPassage
fn clone(&self) -> ExtractedPassage
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 ExtractedPassage
impl RefUnwindSafe for ExtractedPassage
impl Send for ExtractedPassage
impl Sync for ExtractedPassage
impl Unpin for ExtractedPassage
impl UnsafeUnpin for ExtractedPassage
impl UnwindSafe for ExtractedPassage
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