#[non_exhaustive]pub struct FlowSummary {
pub flow_id: FlowId,
pub created_at: TimestampMs,
pub status: FlowStatus,
}Expand description
Lightweight per-flow projection returned by
crate::engine_backend::EngineBackend::list_flows.
Deliberately narrower than FlowSnapshot — listing pages serve
dashboard-style enumerations where the caller does not want to pay
for the full flow_core hash on every row. Consumers that need
revision / node-count / tags / cancel metadata should fan out to
crate::engine_backend::EngineBackend::describe_flow for the
specific ids they care about.
#[non_exhaustive] — FF may add fields in minor releases without
a semver break. Match with .. or use FlowSummary::new.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.flow_id: FlowId§created_at: TimestampMsTimestamp (ms since unix epoch) flow_core.created_at was
stamped. Mirrors FlowSnapshot::created_at; kept typed so
callers that want raw millis can read .0.
status: FlowStatusTyped projection of flow_core.public_flow_state. See
FlowStatus for the mapping.
Implementations§
Source§impl FlowSummary
impl FlowSummary
Sourcepub fn new(flow_id: FlowId, created_at: TimestampMs, status: FlowStatus) -> Self
pub fn new(flow_id: FlowId, created_at: TimestampMs, status: FlowStatus) -> Self
Construct a FlowSummary. Present so downstream crates can
assemble the struct despite the #[non_exhaustive] marker.
Trait Implementations§
Source§impl Clone for FlowSummary
impl Clone for FlowSummary
Source§fn clone(&self) -> FlowSummary
fn clone(&self) -> FlowSummary
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more