pub struct PassageContext {
pub passage_text: String,
pub triggering_terms: Vec<String>,
pub session_id: String,
pub timestamp: i64,
}Expand description
Context about a passage needed for classification. Keeps classification decoupled from core types.
Fields§
§passage_text: StringThe passage text.
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).
Trait Implementations§
Source§impl Clone for PassageContext
impl Clone for PassageContext
Source§fn clone(&self) -> PassageContext
fn clone(&self) -> PassageContext
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 PassageContext
impl RefUnwindSafe for PassageContext
impl Send for PassageContext
impl Sync for PassageContext
impl Unpin for PassageContext
impl UnsafeUnpin for PassageContext
impl UnwindSafe for PassageContext
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