Skip to main content

export_engine/
snapshot.rs

1// Wrapper for a process snapshot with capture metadata (plan.md ยง ProcessSnapshot).
2
3use chrono::{DateTime, Utc};
4use peek_core::ProcessInfo;
5use serde::Serialize;
6
7/// A process snapshot with capture time and peek version for exports.
8#[derive(Debug, Clone, Serialize)]
9pub struct ProcessSnapshot {
10    /// When the snapshot was captured (UTC).
11    pub captured_at: DateTime<Utc>,
12    /// peek version that produced this snapshot (e.g. from CARGO_PKG_VERSION).
13    pub peek_version: String,
14    /// The process data.
15    pub process: ProcessInfo,
16}