#[non_exhaustive]pub struct ClassifiedPassage {
pub text: String,
pub categories: Vec<ImportanceCategory>,
pub triggering_terms: Vec<String>,
pub session_id: String,
pub timestamp: i64,
pub entity: Option<String>,
pub value: Option<String>,
pub entity_pair: Option<(String, String)>,
pub superseded: bool,
}Expand description
A passage that has been classified into zero or more
ImportanceCategory values, with extracted entities/values where
applicable.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.text: StringThe passage text.
categories: Vec<ImportanceCategory>Categories assigned to this passage.
triggering_terms: Vec<String>High-recurrence terms that triggered extraction of this passage.
session_id: StringSession ID this passage belongs to.
timestamp: i64Source entry timestamp (Unix seconds).
entity: Option<String>Extracted entity for stateful/decisive categories.
value: Option<String>Extracted value for stateful category.
entity_pair: Option<(String, String)>Second entity for decisive category (entity pair).
superseded: boolWhether this passage has been superseded by a newer one.
Supersession is evaluated per-category (stateful or decisive), but this flag represents “superseded in at least one category.” A multi-category passage marked superseded may still be the latest representative of another category it belongs to. Consumers should check category-specific supersession if needed.
Trait Implementations§
Source§impl Clone for ClassifiedPassage
impl Clone for ClassifiedPassage
Source§fn clone(&self) -> ClassifiedPassage
fn clone(&self) -> ClassifiedPassage
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more