#[non_exhaustive]pub struct ImportanceSegment {
pub text: String,
pub categories: Vec<ImportanceCategory>,
pub importance_score: f64,
pub recurrence_score: f64,
pub category_weight: f64,
pub recency_factor: f64,
pub triggering_terms: Vec<String>,
pub session_frequency: usize,
pub session_id: String,
pub timestamp: i64,
pub token_estimate: usize,
}Expand description
A scored passage ready for context injection.
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: StringThe passage text for injection.
categories: Vec<ImportanceCategory>Importance categories assigned to the passage.
importance_score: f64Combined importance score.
recurrence_score: f64The highest recurrence score among triggering terms.
category_weight: f64Category weight used (max across categories).
recency_factor: f64Recency factor applied.
triggering_terms: Vec<String>High-recurrence terms that triggered extraction.
session_frequency: usizeMaximum number of sessions any triggering term appears in.
session_id: StringSession ID this passage belongs to.
timestamp: i64Source entry timestamp (Unix seconds).
token_estimate: usizeEstimated token count (text.len().div_ceil(4)).
Trait Implementations§
Source§impl Clone for ImportanceSegment
impl Clone for ImportanceSegment
Source§fn clone(&self) -> ImportanceSegment
fn clone(&self) -> ImportanceSegment
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 ImportanceSegment
impl RefUnwindSafe for ImportanceSegment
impl Send for ImportanceSegment
impl Sync for ImportanceSegment
impl Unpin for ImportanceSegment
impl UnsafeUnpin for ImportanceSegment
impl UnwindSafe for ImportanceSegment
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