pub struct ExtractedKeywords {
pub transition: Vec<String>,
pub question: Vec<String>,
pub task: Vec<String>,
pub tech: Vec<String>,
}Expand description
Extracted keywords organized by category.
These keywords are used for focus tracking and topic detection. They are passed to FocusTracker in real-time and not persisted.
Fields§
§transition: Vec<String>Keywords indicating topic transition/change. Examples: “换个话题”, “switching”, “however”
question: Vec<String>Keywords indicating questions. Examples: “怎么”, “how”, “为什么”, “why”
task: Vec<String>Keywords indicating tasks/requests. Examples: “帮我”, “implement”, “创建”, “create”
tech: Vec<String>Technical/domain keywords. Examples: “rust”, “数据库”, “api”, “performance”
Implementations§
Source§impl ExtractedKeywords
impl ExtractedKeywords
Sourcepub fn total_count(&self) -> usize
pub fn total_count(&self) -> usize
Get total keyword count across all categories.
Sourcepub fn merge(&mut self, other: &ExtractedKeywords)
pub fn merge(&mut self, other: &ExtractedKeywords)
Merge with another ExtractedKeywords, combining all categories.
Trait Implementations§
Source§impl Clone for ExtractedKeywords
impl Clone for ExtractedKeywords
Source§fn clone(&self) -> ExtractedKeywords
fn clone(&self) -> ExtractedKeywords
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 moreSource§impl Debug for ExtractedKeywords
impl Debug for ExtractedKeywords
Source§impl Default for ExtractedKeywords
impl Default for ExtractedKeywords
Source§fn default() -> ExtractedKeywords
fn default() -> ExtractedKeywords
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for ExtractedKeywords
impl<'de> Deserialize<'de> for ExtractedKeywords
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 ExtractedKeywords
impl RefUnwindSafe for ExtractedKeywords
impl Send for ExtractedKeywords
impl Sync for ExtractedKeywords
impl Unpin for ExtractedKeywords
impl UnsafeUnpin for ExtractedKeywords
impl UnwindSafe for ExtractedKeywords
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