mockforge_intelligence/handlers/snapshot_diff/mod.rs
1//! Snapshot diff HTTP behavior, independent of the consuming management state.
2
3use async_trait::async_trait;
4mod comparison;
5mod models;
6mod routes;
7
8pub use models::*;
9pub use routes::snapshot_diff_router;
10
11/// Current mock projection supplied by the consuming application.
12#[async_trait]
13pub trait SnapshotStateProvider: Clone + Send + Sync + 'static {
14 /// Capture the application's current mocks using the public snapshot format.
15 async fn snapshot_items(&self) -> Vec<MockSnapshotItem>;
16}