Skip to main content

canic_core/workflow/state/
query.rs

1//! Module: workflow::state::query
2//!
3//! Responsibility: expose the read-only app-state workflow snapshot.
4//! Does not own: state storage mutation, endpoint authorization, or DTO schemas.
5//! Boundary: workflow query facade over state storage ops.
6
7use crate::{dto::state::AppStateResponse, ops::storage::state::app::AppStateOps};
8
9///
10/// AppStateQuery
11///
12
13pub struct AppStateQuery;
14
15impl AppStateQuery {
16    #[must_use]
17    pub fn snapshot() -> AppStateResponse {
18        AppStateOps::snapshot_response()
19    }
20}