pub struct ContextSummary {
pub foreground_apps: Vec<String>,
pub notified_apps: Vec<String>,
pub all_semantic_hints: Vec<SemanticHint>,
pub file_activity: Vec<(ExtensionCategory, u32)>,
pub latest_system_status: Option<SystemStatusSnapshot>,
pub source_tier: SourceTier,
}Expand description
窗口聚合摘要
Fields§
§foreground_apps: Vec<String>窗口内的前台 app 序列 (按时间顺序, 去重)
notified_apps: Vec<String>收到通知的 app 列表 (去重)
all_semantic_hints: Vec<SemanticHint>触发的语义标签汇总 (去重)
file_activity: Vec<(ExtensionCategory, u32)>文件活动汇总 (扩展名类别 → 次数)
latest_system_status: Option<SystemStatusSnapshot>系统状态快照 (取窗口内的最新值)
source_tier: SourceTier来源能力等级
Trait Implementations§
Source§impl Clone for ContextSummary
impl Clone for ContextSummary
Source§fn clone(&self) -> ContextSummary
fn clone(&self) -> ContextSummary
Returns a duplicate of the value. Read more
1.0.0 · 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 ContextSummary
impl Debug for ContextSummary
Source§impl<'de> Deserialize<'de> for ContextSummary
impl<'de> Deserialize<'de> for ContextSummary
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 ContextSummary
impl RefUnwindSafe for ContextSummary
impl Send for ContextSummary
impl Sync for ContextSummary
impl Unpin for ContextSummary
impl UnsafeUnpin for ContextSummary
impl UnwindSafe for ContextSummary
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