Skip to main content

Command

Derive Macro Command 

Source
#[derive(Command)]
{
    // Attributes available to this derive:
    #[stream]
}
Expand description

Entry point for #[derive(Command)].

Generates a CommandStreams implementation for the annotated struct. Every StreamId field marked with #[stream] is included in the generated stream_declarations() return value, establishing the command’s atomic consistency boundary.

See the crate-level documentation for requirements and a usage example.