canic_core/workflow/state/query.rs
1//! Module: workflow::state::query
2//!
3//! Responsibility: expose the read-only Fleet-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::FleetStateResponse, ops::storage::state::fleet::FleetStateOps};
8
9///
10/// FleetStateQuery
11///
12
13pub struct FleetStateQuery;
14
15impl FleetStateQuery {
16 #[must_use]
17 pub fn snapshot() -> FleetStateResponse {
18 FleetStateOps::snapshot_response()
19 }
20}