pub trait CommandStreams {
// Required method
fn stream_declarations(&self) -> StreamDeclarations;
}Expand description
Infrastructure trait describing the streams required to execute a command.
Per ADR-006, stream declarations are generated or implemented separately from
the business logic so infrastructure can evolve independently. Commands
typically use StreamDeclarations::single for single-stream workflows or
StreamDeclarations::try_from_streams when coordinating multiple streams.