pub struct ContextSnapshot {Show 15 fields
pub app: String,
pub window: String,
pub elements: Vec<ContextElement>,
pub network_events: Vec<ConnectionEvent>,
pub http_events: Vec<HttpEvent>,
pub timestamp_ms: u64,
pub screen_width: Option<u32>,
pub screen_height: Option<u32>,
pub clipboard: Option<ClipboardState>,
pub window_list: Vec<WindowState>,
pub audio: Option<AudioState>,
pub power: Option<PowerState>,
pub running_apps: Vec<RunningApp>,
pub recent_files: Vec<RecentFile>,
pub transcripts: Vec<TranscriptEntry>,
}Expand description
A point-in-time context snapshot built from normalized stream facts.
Fields§
§app: StringHuman-readable primary app, service, domain, or workflow label.
window: StringHuman-readable secondary scope label, such as a window, route, incident, or task.
elements: Vec<ContextElement>All normalized context elements, sorted by confidence (highest first).
network_events: Vec<ConnectionEvent>Recent network connections (TCP/UDP level — honest data from lsof or /proc).
http_events: Vec<HttpEvent>Real HTTP events from CDP or proxy (never fabricated).
timestamp_ms: u64Timestamp of this context snapshot (ms since epoch).
screen_width: Option<u32>Screen width in pixels (used for spatial normalization in reference resolution).
screen_height: Option<u32>Screen height in pixels (used for spatial normalization in reference resolution).
clipboard: Option<ClipboardState>Clipboard state (text, has_image, has_files).
window_list: Vec<WindowState>All visible windows on screen (not just focused app).
audio: Option<AudioState>Audio output state (volume, muted).
power: Option<PowerState>Battery/power state.
running_apps: Vec<RunningApp>Running GUI applications.
recent_files: Vec<RecentFile>Recently created/modified files.
transcripts: Vec<TranscriptEntry>Transcribed speech segments from any audio stream.
Trait Implementations§
Source§impl Clone for ContextSnapshot
impl Clone for ContextSnapshot
Source§fn clone(&self) -> ContextSnapshot
fn clone(&self) -> ContextSnapshot
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more